server files (via password shell, find): snapshots=0 index=0 data=0 keys=0 locks=0 
$ lc.sh forced spike-r436 restore d807418c --target /d/restored --include /d/tree/sub/note.txt
restoring <Snapshot d807418c of [/d/tree] at 2026-10-03 11:20:19.591226798 +0000 UTC by root@livebox> to /d/restored
[rc=0]

restored vs source: IDENTICAL
## E4
$ lc.sh forced spike-r436 forget d807418c --prune
[0:48] 0.00%  0 / 1 files deleted

unable to remove <snapshot/d807418cbc> from the repository
blob not removed, server response: 403 Forbidden (403)
[rc=1]

## E6
$ lc.sh forced spike-r436 forget --keep-last 1
Applying Policy: keep 1 latest snapshots
keep 1 snapshots:
ID        Time                 Host        Tags        Reasons        Paths
-----------------------------------------------------------------------------
68885c41  2026-10-03 11:20:22  livebox     app1        last snapshot  /d/tree
-----------------------------------------------------------------------------
1 snapshots

remove 1 snapshots:
ID        Time                 Host        Tags        Paths
--------------------------------------------------------------
d807418c  2026-10-03 11:20:19  livebox     app1        /d/tree
--------------------------------------------------------------
1 snapshots

unable to remove <snapshot/d807418cbc> from the repository
[0:48] 0.00%  0 / 1 files deleted

blob not removed, server response: 403 Forbidden (403)
[rc=1]

server files: snapshots=0 index=0 data=0 keys=0 locks=0 
## E5 made real: app2 snapshot, removed by the PLAIN key (C1), then prune through the FORCED key
$ lc.sh forced spike-r436 backup /d/tree2 --host livebox --tag app2
no parent snapshot found, will read all files

Files:           1 new,     0 changed,     0 unmodified
Dirs:            2 new,     0 changed,     0 unmodified
Added to the repository: 293.934 KiB (293.869 KiB stored)

processed 1 files, 292.969 KiB in 0:00
snapshot 973e0dac saved
[rc=0]

app2 = 973e0dac
## C1 control: PLAIN key forget
$ lc.sh plain spike-r436 forget 973e0dac
[0:00] 100.00%  1 / 1 files deleted

[rc=0]

server files: snapshots=0 index=0 data=0 keys=0 locks=0 
## E5
$ lc.sh forced spike-r436 prune
loading indexes...
loading all snapshots...
finding data that is still in use for 2 snapshots
[0:00] 100.00%  2 / 2 snapshots

searching used packs...
collecting packs for deletion and repacking
[0:00] 100.00%  4 / 4 packs processed


to repack:             0 blobs / 0 B
this removes:          0 blobs / 0 B
to delete:             4 blobs / 293.709 KiB
total prune:           4 blobs / 293.709 KiB
remaining:             8 blobs / 587.215 KiB
unused size after prune: 0 B (0.00% of remaining size)

rebuilding index
[0:00] 100.00%  2 / 2 packs processed

deleting obsolete index files
unable to remove <index/a5b0181c03> from the repository
unable to remove <index/3d1291b4e3> from the repository
[0:45] 0.00%  0 / 2 files deleted

Fatal: blob not removed, server response: 403 Forbidden (403)
[rc=1]

server files: snapshots=0 index=0 data=0 keys=0 locks=0 
$ lc.sh forced spike-r436 snapshots
ID        Time                 Host        Tags        Paths
--------------------------------------------------------------
d807418c  2026-10-03 11:20:19  livebox     app1        /d/tree
68885c41  2026-10-03 11:20:22  livebox     app1        /d/tree
--------------------------------------------------------------
2 snapshots
[rc=0]

$ lc.sh forced spike-r436 check
using temporary cache in /tmp/restic-check-cache-3559416072
create exclusive lock for repository
load indexes
pack c67a24b49d4e41a91d6de9448cb7c72623b6eb12ee8a50b7f4db2e2dfb465480 contained in several indexes: {85027deb a5b0181c}
pack 92475c24d7b0495584f168c7a73e6f0e35c9c27881c2ecbb0e18695b889cfb7f contained in several indexes: {85027deb a5b0181c}
This is non-critical, you can run `restic rebuild-index' to correct this
check all packs
check snapshots, trees and blobs
[0:00] 100.00%  2 / 2 snapshots

no errors were found
[rc=0]

