Trying to use schnapps to rollback to the previous snapshot, but got an error below. Is that misconfiguration on my side?
schnapps rollback
Current state saved as snapshot number 2
Rolled back to snapshot 1
Create subvolume '/tmp/certstore/certbackup'
cp: can't stat '/mnt/.snapshots/certbackup/*': No such file or directory
Observed same when there is no initial snapshot, basically when you just start using schnapps after a medkit installation.
Not sure whether it is expected or sort of bug but it does not harm the snapshot, at least it never did on this node.
Suppose you are aware that in order to apply the rollback a reboot required. And snapshots are not preserved on the device’s drive during a medkit installation.
schnapps has also an export/import feature, convenient for storing snapshots on another drive for safekeeping.
an exported/downloaded snapshot can be used like any other medkit file with the 4-led reccovery
Good practice might be to export/download a snapshot of a last good known state in case of disaster recovery. It save my bacon a couple of time, well you always start from scratch I suppose
cleanup [--compare] Deletes old snapshots and keeps only N newest
You can set number of snapshots to keep in /etc/config/schnapps
Current value of N is following for various types (-1 means infinite):
* -1 single snapshots
* 5 time based snapshots
* 5 updater snapshots
* 3 rollback backups snapshots
With --compare option also deletes snapshots that doesn't differ from
the previous one