## E5 made real: unreferenced data exists, then prune through the FORCED key
$ c.sh forced spike-repo backup /d/tree2 --host labbox --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 4137acee saved
[rc=0]

app2 snapshot = 4137acee
## C1 control: the PLAIN key (no forced command) removes a snapshot
$ c.sh plain spike-repo forget 4137acee
rclone: 2026/10/03 09:10:36 CRITICAL: Failed to create file system for "lab:spike-repo": didn't find section in config file ("lab")
Fatal: unable to open repository at rclone:lab:spike-repo: error talking HTTP to rclone: Get "http://localhost/file-5577006791947779410": unexpected EOF
[rc=1]

server files now: snapshots=3 keys=1 index=2 data=4 locks=0 
## E5: prune through the FORCED key must now try to delete a pack
$ c.sh forced spike-repo prune
loading indexes...
loading all snapshots...
finding data that is still in use for 3 snapshots
[0:00] 100.00%  3 / 3 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:             0 blobs / 0 B
total prune:           0 blobs / 0 B
remaining:            12 blobs / 880.956 KiB
unused size after prune: 0 B (0.00% of remaining size)

done
[rc=0]

server files after forced prune: snapshots=3 keys=1 index=2 data=4 locks=0 
## C1 control: prune through the PLAIN key
$ c.sh plain spike-repo prune
rclone: 2026/10/03 09:10:39 CRITICAL: Failed to create file system for "lab:spike-repo": didn't find section in config file ("lab")
Fatal: unable to open repository at rclone:lab:spike-repo: error talking HTTP to rclone: Get "http://localhost/file-5577006791947779410": unexpected EOF
[rc=1]

server files after plain prune: snapshots=3 keys=1 index=2 data=4 locks=0 
## C2: forced key, client names a DIFFERENT repo path (other-repo)
$ c.sh forced other-repo snapshots
ID        Time                 Host        Tags        Paths
---------------------------------------------------------------
63a075dc  2026-10-03 09:07:50  labbox      app1        /d/tree
066a039d  2026-10-03 09:07:52  labbox      app1        /d/tree
4137acee  2026-10-03 09:10:32  labbox      app2        /d/tree2
---------------------------------------------------------------
3 snapshots
[rc=0]

$ c.sh forced other-repo init
Fatal: create repository at rclone:lab:other-repo failed: Fatal: config file already exists

[rc=1]

spike-repo
