Snapshots
Snapshots save the current state of the database for later restoration.
They are created automatically during the server's operation but they can also be manually managed while the server is offline.
Configuration options for automatic snapshot triggers and intervals are discussed in the chapter Configuration File.
The subcommand snapshot
is provided for managing snaphshots.
Examples
Creating a named snapshot
tentris snapshot create my_snapshot
Note: Not providing a name will create a snapshot with a timestamp as its name.
Listing all snapshots
tentris snapshot list
Verifying the integrity of a snapshot
tentris snapshot verify my_snapshot
Deleting a snapshot
tentris snapshot destroy my_snapshot
Roll back to a snapshot
The subcommand rollback
can be used to roll the database's state back to the state of a particular snapshot.
tentris rollback my_snapshot
⚠️ Warning: This discards all changes that were made to the database after the snapshot was created, unless there is a newer snapshot.