Documentation ¶ Overview ¶ Package backup implements the `dodo backup` command: an online snapshot of the SQLite database, equivalent to `sqlite3 <db> ".backup <dest>"`. Index ¶ func Run(args []string) int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Run ¶ func Run(args []string) int Run executes `dodo backup -dump <dest>`. It reads the database path the same way `serve`/`admin` do (DODO_DATABASE_PATH) and writes a consistent copy to dest using `VACUUM INTO`, which is safe against a running server under WAL. Types ¶ This section is empty. Source Files ¶ View all Source files backup.go Click to show internal directories. Click to hide internal directories.