Missing snapshots and maybe other problems?

I restored a snapshot and had the same issue happen to me (booo!!!)

ID 257 gen 384944 top level 5 path @home
ID 258 gen 384943 top level 5 path @root
ID 259 gen 362852 top level 5 path @srv
ID 260 gen 384943 top level 5 path @cache
ID 261 gen 384944 top level 5 path @log
ID 262 gen 384943 top level 5 path @tmp
ID 2110 gen 384934 top level 5 path restore_backup_@_221503196
ID 2196 gen 384936 top level 2110 path restore_backup_@_221503196/.snapshots
ID 2197 gen 384909 top level 2196 path restore_backup_@_221503196/.snapshots/1/snapshot
ID 2198 gen 384910 top level 2196 path restore_backup_@_221503196/.snapshots/2/snapshot
ID 2199 gen 384911 top level 2196 path restore_backup_@_221503196/.snapshots/3/snapshot
ID 2200 gen 384912 top level 2196 path restore_backup_@_221503196/.snapshots/4/snapshot
ID 2201 gen 384913 top level 2196 path restore_backup_@_221503196/.snapshots/5/snapshot
ID 2202 gen 384937 top level 2196 path restore_backup_@_221503196/.snapshots/6/snapshot
ID 2203 gen 384915 top level 2196 path restore_backup_@_221503196/.snapshots/7/snapshot
ID 2204 gen 384916 top level 2196 path restore_backup_@_221503196/.snapshots/8/snapshot
ID 2205 gen 384917 top level 2196 path restore_backup_@_221503196/.snapshots/9/snapshot
ID 2206 gen 384918 top level 2196 path restore_backup_@_221503196/.snapshots/10/snapshot
ID 2207 gen 384919 top level 2196 path restore_backup_@_221503196/.snapshots/11/snapshot
ID 2208 gen 384920 top level 2196 path restore_backup_@_221503196/.snapshots/12/snapshot
ID 2209 gen 384921 top level 2196 path restore_backup_@_221503196/.snapshots/13/snapshot
ID 2210 gen 384922 top level 2196 path restore_backup_@_221503196/.snapshots/14/snapshot
ID 2211 gen 384923 top level 2196 path restore_backup_@_221503196/.snapshots/15/snapshot
ID 2212 gen 384924 top level 2196 path restore_backup_@_221503196/.snapshots/16/snapshot
ID 2213 gen 384925 top level 2196 path restore_backup_@_221503196/.snapshots/17/snapshot
ID 2214 gen 384926 top level 2196 path restore_backup_@_221503196/.snapshots/18/snapshot
ID 2215 gen 384944 top level 5 path @

After using my reset script, however, this has all been fixed:

ID 257 gen 384948 top level 5 path @home
ID 258 gen 384948 top level 5 path @root
ID 259 gen 362852 top level 5 path @srv
ID 260 gen 384943 top level 5 path @cache
ID 261 gen 384948 top level 5 path @log
ID 262 gen 384943 top level 5 path @tmp
ID 2215 gen 384948 top level 5 path @
ID 2216 gen 384948 top level 2215 path .snapshots

So for any helpers or users stumbling across this in the future, update remote reset-snapper is the magic command!

@dalto I would appreciate if you could double check the code for me, but I ran it on my own machine a couple billion times and didn't notice anything going wrong so fingers crossed? :stuck_out_tongue:
https://gitlab.com/garuda-linux/themes-and-settings/settings/garuda-common-settings/-/snippets/2147440/raw/main/reset-snapper

7 Likes