I accidentally allowed kopia to backup a crypto blockchain which completely filled up my server with 1.7TB of junk.
It also made kopiaUI freeze up on me when I was using the GUI to delete snapshots containing it, and I had been forced to terminate it.
No problem I thought, I will delete all the relevant snapshots, shut off kopiaUI, and do a full maintainence to purge it, possibly with safety off (I can guarantee no writes are happening as this is the sole machine backing up to that kopia database)… the problem is that it isn’t purging, it chokes on some invalid checksum files.
unable to rewrite content "5d69dd0a0731ca06c99c16d5d3de182e": unable to get content data and info: invalid checksum at pc312f2172013a4fea48fd941318a5e02-s5b9ae01dd782ed6b12e offset 4185497 length 889488/889488: decrypt: unable to decrypt content: cipher: message authentication failed
I should clarify, I am not trying to restore my files from backup.
I don’t care about the existing snapshots. I am fine with deleting all the snapshots and letting it recopy my files from the originals.
The only thing I don’t want to delete is the policies. a lot of work went into creating the policies.
So… what files do I need to delete to make it unchoke?
Is there maybe a command line command to tell it to discard the corrupt files?
full maintenance seems to just make it bigger
t@t-desk:~$ kopia maintenance run --full
Running full maintenance...
Looking for active contents...
Looking for unreferenced contents...
GC found 56859 unused contents (38.6 GB)
GC found 917870 unused contents that are too recent to delete (1.7 TB)
GC found 39165 in-use contents (11.3 GB)
GC found 1145 in-use system-contents (2.2 MB)
Rewriting contents from short packs...
unable to rewrite content "5d69dd0a0731ca06c99c16d5d3de182e": unable to get content data and info: invalid checksum at pc312f2172013a4fea48fd941318a5e02-s5b9ae01dd782ed6b12e offset 4185497 length 889488/889488: decrypt: unable to decrypt content: cipher: message authentication failed
unable to rewrite content "fc0cd7d30652f585e741aeefa3849206": unable to get content data and info: invalid checksum at pc312f2172013a4fea48fd941318a5e02-s5b9ae01dd782ed6b12e offset 5074985 length 817011/817011: decrypt: unable to decrypt content: cipher: message authentication failed
Total bytes rewritten 1.4 GB
Finished full maintenance.
ERROR error rewriting contents in short packs: failed to rewrite 2 contents
t@t-desk:~$ kopia maintenance run --full --safety=none
Running full maintenance...
Looking for active contents...
Looking for unreferenced contents...
... found 100000 unused contents so far (190.2 GB bytes)
... found 200000 unused contents so far (380.4 GB bytes)
... found 300000 unused contents so far (570.4 GB bytes)
... found 400000 unused contents so far (760.5 GB bytes)
... found 500000 unused contents so far (1 TB bytes)
... found 600000 unused contents so far (1.1 TB bytes)
... found 700000 unused contents so far (1.3 TB bytes)
... found 800000 unused contents so far (1.5 TB bytes)
... found 900000 unused contents so far (1.7 TB bytes)
GC found 974729 unused contents (1.8 TB)
GC found 0 unused contents that are too recent to delete (0 B)
GC found 39165 in-use contents (11.3 GB)
GC found 1145 in-use system-contents (2.2 MB)
Rewriting contents from short packs...
unable to rewrite content "5d69dd0a0731ca06c99c16d5d3de182e": unable to get content data and info: invalid checksum at pc312f2172013a4fea48fd941318a5e02-s5b9ae01dd782ed6b12e offset 4185497 length 889488/889488: decrypt: unable to decrypt content: cipher: message authentication failed
unable to rewrite content "fc0cd7d30652f585e741aeefa3849206": unable to get content data and info: invalid checksum at pc312f2172013a4fea48fd941318a5e02-s5b9ae01dd782ed6b12e offset 5074985 length 817011/817011: decrypt: unable to decrypt content: cipher: message authentication failed
Total bytes rewritten 1.7 GB
Finished full maintenance.
ERROR error rewriting contents in short packs: failed to rewrite 2 contents
t@t-desk:~$ kopia maintenance run --full
Running full maintenance...
Looking for active contents...
Looking for unreferenced contents...
GC found 28239 unused contents (2.5 GB)
GC found 946490 unused contents that are too recent to delete (1.8 TB)
GC found 39165 in-use contents (11.3 GB)
GC found 1145 in-use system-contents (2.2 MB)
Rewriting contents from short packs...
unable to rewrite content "5d69dd0a0731ca06c99c16d5d3de182e": unable to get content data and info: invalid checksum at pc312f2172013a4fea48fd941318a5e02-s5b9ae01dd782ed6b12e offset 4185497 length 889488/889488: decrypt: unable to decrypt content: cipher: message authentication failed
unable to rewrite content "fc0cd7d30652f585e741aeefa3849206": unable to get content data and info: invalid checksum at pc312f2172013a4fea48fd941318a5e02-s5b9ae01dd782ed6b12e offset 5074985 length 817011/817011: decrypt: unable to decrypt content: cipher: message authentication failed
Total bytes rewritten 836.9 MB
Finished full maintenance.
ERROR error rewriting contents in short packs: failed to rewrite 2 contents