Back up and restore
Save Drive's database and app data with one command, and put a backup back with another.
Backups hold the database and the app-data folder. Your documents are not included, so back them up where they live.
Back up
With the stack running, from the repository root:
make backup
It writes backups/drive-YYYYMMDD-HHMMSS and keeps the newest 14. Copy backups/ off the machine. Add STACK=run-local for a make run-local stack.
Restore
-
Run restore with the folder
make restore BACKUP=backups/drive-20261017-020000 -
Confirm
It checks the checksums and asks you to type
yes. In a script, setRESTORE_CONFIRM=yes.
It replaces the database and the app-data folder, then starts the stack. Anything changed after the backup is gone.
The backup says the dump is empty
The stack must be running.