backup
rigger backupCopies the database beside itself, stamped with the schema it holds and the moment it was taken.
$ rigger backupCopied to C:\Users\you\AppData\Local\lacodda\rigger\data\rigger.v1-20260904-084102.bakThe copy goes through SQLite’s own backup interface rather than a file copy, so it is consistent even if something else has the database open.
Before a migration, automatically
Section titled “Before a migration, automatically”The record is the truth here, and a migration rewrites it. So when a newer rigger opens a database written by an older one, it takes this same copy first and says where it went:
$ rigger doctorMigrating schema 1 -> 2; the previous database is saved as ...\rigger.v1-20260904-084102.bakA fresh database has nothing to lose and is not copied.
Restoring
Section titled “Restoring”A backup is an ordinary SQLite database. To go back to one, close anything using rigger and copy the file over rigger.db - the path doctor prints. Backups are never removed by rigger; delete the ones you no longer want.