A while back the remote storage for one of my backups had an issue and some data got corrupted. So, when I tried to run a backup, I now got:
The backup storage destination is missing data files. You can either enable
–rebuild-missing-dblock-files or run the purge command to remove these files. The following files are missing: duplicati-b0a190a1cc8b1499283473f250edbd311.dblock.zip.aes, duplicati-ba3808cce103f42d083150420fb32aac2.dblock.zip.aes, duplicati-bc399283f5a29481e8344fe2a1a1bf975.dblock.zip.aes, duplicati-bb7cec6124b0147d5816396d90a9b2597.dblock.zip.aes, duplicati-b8007bd9a349f460fabbeedb602b63766.dblock.zip.aes, duplicati-be77e5c8861ae488bb25d887ea668dc95.dblock.zip.aes, duplicati-b654db1068d684162a3601677510beafc.dblock.zip.aes, duplicati-bc98344087c354250864acca0ed4128ce.dblock.zip.aes, duplicati-b711d5b58167144e9bdec6ed8433ca895.dblock.zip.aes, duplicati-bb39c353f26464970a8439fd8c94dc409.dblock.zip.aes, duplicati-bf481caa949f34f0689c9f6584073a9f0.dblock.zip.aes, duplicati-b6b81f98b2b6544cca2acc33e306ea60f.dblock.zip.aes
So, I tried to follow repair instructions but failed:
sudo mono /Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe backup "s3s URL" /Users/lia/Documents/ /Users/lia/Pictures/ /Users/lia/Desktop/ --backup-name=ComputerLia --dbpath=/var/root/.config/Duplicati/CRQENUZKMY.sqlite --encryption-module=aes --compression-module=zip --dblock-size=50mb --passphrase=[snip] --retention-policy="1W:1D,4W:1W,12M:1M" --disable-module=console-password-input --rebuild-missing-dblock-files
Password:
Backup started at 1/23/2022 9:10:29 PM
Checking remote backup ...
Listing remote folder ...
Missing file: duplicati-20201007T101330Z.dlist.zip.aes
Missing file: duplicati-20201111T144115Z.dlist.zip.aes
Missing file: duplicati-20201212T190109Z.dlist.zip.aes
Missing file: duplicati-b0a190a1cc8b1499283473f250edbd311.dblock.zip.aes
Missing file: duplicati-i6fb1c4f8179a4ded932066deab5b58d9.dindex.zip.aes
Missing file: duplicati-20210825T193153Z.dlist.zip.aes
Missing file: duplicati-20210902T091337Z.dlist.zip.aes
Missing file: duplicati-ba3808cce103f42d083150420fb32aac2.dblock.zip.aes
Missing file: duplicati-i6dcaa73d27c64a5895abaa53592b0d5f.dindex.zip.aes
Missing file: duplicati-bc399283f5a29481e8344fe2a1a1bf975.dblock.zip.aes
Missing file: duplicati-i6c9c0305def64d37b7f5e3582996b244.dindex.zip.aes
Missing file: duplicati-20210908T145543Z.dlist.zip.aes
Missing file: duplicati-20210909T154257Z.dlist.zip.aes
Missing file: duplicati-20210910T183622Z.dlist.zip.aes
Missing file: duplicati-20210912T165709Z.dlist.zip.aes
Missing file: duplicati-20210914T094808Z.dlist.zip.aes
Missing file: duplicati-bb7cec6124b0147d5816396d90a9b2597.dblock.zip.aes
Missing file: duplicati-ie376151220764aa3ad8195224a1569f1.dindex.zip.aes
Missing file: duplicati-b8007bd9a349f460fabbeedb602b63766.dblock.zip.aes
Missing file: duplicati-id80cab85c36d4db691a126740047c3ea.dindex.zip.aes
Missing file: duplicati-be77e5c8861ae488bb25d887ea668dc95.dblock.zip.aes
Missing file: duplicati-ia4e875a42ccb4e2aaa77eefee44ea3e1.dindex.zip.aes
Missing file: duplicati-b654db1068d684162a3601677510beafc.dblock.zip.aes
Missing file: duplicati-i85ebdfd818174ee7a8d0c02e209f6180.dindex.zip.aes
Missing file: duplicati-bc98344087c354250864acca0ed4128ce.dblock.zip.aes
Missing file: duplicati-iefab6e0f6a0a4ea0b8f8c153cd96909d.dindex.zip.aes
Missing file: duplicati-20210915T102025Z.dlist.zip.aes
Missing file: duplicati-b711d5b58167144e9bdec6ed8433ca895.dblock.zip.aes
Missing file: duplicati-ia0dde18f3ec44505ae700fb5accd69b4.dindex.zip.aes
Missing file: duplicati-bb39c353f26464970a8439fd8c94dc409.dblock.zip.aes
Missing file: duplicati-i5581506ad0614082b9c64bb1c0204996.dindex.zip.aes
Missing file: duplicati-bf481caa949f34f0689c9f6584073a9f0.dblock.zip.aes
Missing file: duplicati-i155c1ec271b048e3b73004df3c8d5579.dindex.zip.aes
Missing file: duplicati-20210915T125147Z.dlist.zip.aes
Missing file: duplicati-b6b81f98b2b6544cca2acc33e306ea60f.dblock.zip.aes
Missing file: duplicati-i4b7dc6bdb84d4f40ad89ced0d8fc2baa.dindex.zip.aes
Found 36 files that are missing from the remote storage, please run repair
Fatal error => Found 36 files that are missing from the remote storage, please run repair
ErrorID: MissingRemoteFiles
Found 36 files that are missing from the remote storage, please run repair
Computer-van-Lia:~ bh$ sudo mono /Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe --dry-run purge-broken-files "s3s URL" /Users/lia/Documents/ /Users/lia/Pictures/ /Users/lia/Desktop/ --backup-name=ComputerLia --dbpath=/var/root/.config/Duplicati/CRQENUZKMY.sqlite --encryption-module=aes --compression-module=zip --dblock-size=50mb --passphrase=[snip] --retention-policy="1W:1D,4W:1W,12M:1M" --disable-module=console-password-input
Found 4 commands but expected 1, commands:
"s3s URL"
"/Users/lia/Documents/"
"/Users/lia/Pictures/"
"/Users/lia/Desktop/"
Computer-van-Lia:~ bh$ sudo mono /Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe --dry-run purge-broken-files --backup-name=ComputerLia --dbpath=/var/root/.config/Duplicati/CRQENUZKMY.sqlite --encryption-module=aes --compression-module=zip --dblock-size=50mb --passphrase=aJDWrywHXZcdtrUR7CZyd3xQ --retention-policy="1W:1D,4W:1W,12M:1M" --disable-module=console-password-input
Found 0 commands but expected 1, commands:
Computer-van-Lia:~ bh$ sudo mono /Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe purge-broken-files "s3s URL" /Users/lia/Documents/ /Users/lia/Pictures/ /Users/lia/Desktop/ --dry-run --backup-name=ComputerLia --dbpath=/var/root/.config/Duplicati/CRQENUZKMY.sqlite --encryption-module=aes --compression-module=zip --dblock-size=50mb --passphrase=[snip] --retention-policy="1W:1D,4W:1W,12M:1M" --disable-module=console-password-input
Found 4 commands but expected 1, commands:
"s3s URL"
"/Users/lia/Documents/"
"/Users/lia/Pictures/"
"/Users/lia/Desktop/"
Computer-van-Lia:~ bh$ sudo mono /Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe create-report "s3s URL" /Users/lia/Documents/ /Users/lia/Pictures/ /Users/lia/Desktop/ --backup-name=ComputerLia --dbpath=/var/root/.config/Duplicati/CRQENUZKMY.sqlite --encryption-module=aes --compression-module=zip --dblock-size=50mb --passphrase=[snip] --retention-policy="1W:1D,4W:1W,12M:1M" --disable-module=console-password-input
System.NotSupportedException: Attempted to write a stream that is larger than 4GiB without setting the zip64 option
at SharpCompress.Writers.Zip.ZipWriter+ZipWritingStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00034] in <5717dfb1db2745ffb30a27e1fee78b19>:0
at Duplicati.Library.Utility.Utility.CopyStream (System.IO.Stream source, System.IO.Stream target, System.Boolean tryRewindSource, System.Byte[] buf) [0x0002f] in <2a3ee711c7c04f6c957360f2cf183a7f>:0
at Duplicati.Library.Utility.Utility.CopyStream (System.IO.Stream source, System.IO.Stream target) [0x00000] in <2a3ee711c7c04f6c957360f2cf183a7f>:0
at Duplicati.Library.Main.Operation.CreateBugReportHandler.Run () [0x0018c] in <e60bc008dd1b454d861cfacbdd3760b9>:0
at Duplicati.Library.Main.Controller+<>c__DisplayClass27_0.<CreateLogDatabase>b__0 (Duplicati.Library.Main.CreateLogDatabaseResults result) [0x00019] in <e60bc008dd1b454d861cfacbdd3760b9>:0
at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x0026f] in <e60bc008dd1b454d861cfacbdd3760b9>:0
at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]& paths, System.Action`1[T] method) [0x00002] in <e60bc008dd1b454d861cfacbdd3760b9>:0
at Duplicati.Library.Main.Controller.CreateLogDatabase (System.String targetpath) [0x00023] in <e60bc008dd1b454d861cfacbdd3760b9>:0
at Duplicati.CommandLine.Commands.CreateBugReport (System.IO.TextWriter outwriter, System.Action`1[T] setup, System.Collections.Generic.List`1[T] args, System.Collections.Generic.Dictionary`2[TKey,TValue] options, Duplicati.Library.Utility.IFilter filter) [0x000b9] in <eb902dee3a2c4c3fbc8192580b4a42b2>:0
at (wrapper delegate-invoke) System.Func`6[System.IO.TextWriter,System.Action`1[Duplicati.Library.Main.Controller],System.Collections.Generic.List`1[System.String],System.Collections.Generic.Dictionary`2[System.String,System.String],Duplicati.Library.Utility.IFilter,System.Int32].invoke_TResult_T1_T2_T3_T4_T5(System.IO.TextWriter,System.Action`1<Duplicati.Library.Main.Controller>,System.Collections.Generic.List`1<string>,System.Collections.Generic.Dictionary`2<string, string>,Duplicati.Library.Utility.IFilter)
at Duplicati.CommandLine.Program.ParseCommandLine (System.IO.TextWriter outwriter, System.Action`1[T] setup, System.Boolean& verboseErrors, System.String[] args) [0x00342] in <eb902dee3a2c4c3fbc8192580b4a42b2>:0
at Duplicati.CommandLine.Program.RunCommandLine (System.IO.TextWriter outwriter, System.IO.TextWriter errwriter, System.Action`1[T] setup, System.String[] args) [0x00002] in <eb902dee3a2c4c3fbc8192580b4a42b2>:0
Basically, even after looking at the manual, I am at a loss how to get this backup in a working condition again. Basically, I want to keep as much as possible of what is in the remote storage and get the backup back in working condition. How, though?