Schnapps rollback issue

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.

Thx for the clarification. I will reboot now.

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

Different tools for different use cases…

you could try schnapps

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

No effect

r oot@Omnia:~# schnapps list
# | Type | Size | Date | Description
------±----------±------------±----------------------------±-----------------------------------
547 | rollback | | 2018-12-29 21:07:04 +0100 | Rollback to snapshot 528
638 | pre | 12.15MiB | 2019-06-21 10:45:06 +0200 | Automatic pre-update snapshot
639 | post | 11.98MiB | 2019-06-21 10:45:12 +0200 | Automatic post-update snapshot
641 | time | 13.81MiB | 2019-06-23 01:27:01 +0200 | Snapshot created by cron
642 | single | 13.77MiB | 2019-06-25 13:36:51 +0200 | User created snapshot
643 | single | 13.77MiB | 2019-06-25 20:23:29 +0200 | AAA
root@Omnia:~# schnapps cleanup --compare 1 -1

Searching for snapshots without any change.
This can take a while, please be patient.

 * checking snaphot 639...
 * checking snaphot 641...
 * checking snaphot 642...
 * checking snaphot 643...
Looking for old snapshots...
root@Omnia:~# schnapps list
    # | Type      | Size        | Date                        | Description
------+-----------+-------------+-----------------------------+------------------------------------
  547 | rollback  |             | 2018-12-29 21:07:04 +0100   | Rollback to snapshot 528
  638 | pre       |    12.15MiB | 2019-06-21 10:45:06 +0200   | Automatic pre-update snapshot
  639 | post      |    11.98MiB | 2019-06-21 10:45:12 +0200   | Automatic post-update snapshot
  641 | time      |    13.81MiB | 2019-06-23 01:27:01 +0200   | Snapshot created by cron
  642 | single    |    13.77MiB | 2019-06-25 13:36:51 +0200   | User created snapshot
  643 | single    |    13.77MiB | 2019-06-25 20:23:29 +0200   | AAA
root@Omnia:~#