This is a first crack at helping people understand what will happen with list-broken-files
and purge-broken-files
commands. It is by no means complete, but it IS a wiki, so feel free to add / update anything you feel might be useful to other users.
While Duplicati is very robust in handling errors (including missing destination files) there may come a time when you need to remove references to backup versions from your job.
When this happens, the use of the list-broken-files
command will list what what versions of what files will be REMOVED from your backups IF you run the purge-broken-files
command.
As of the 2.0.3.7 canary (and likely very much older) version, list-broken-files
can be run with:
-
Select the job âCommandline âŚâ menu
-
Select a âCommandâ of
list-broken-files
-
Replace all âCommandline argumentsâ with
--full-result
If this is too long, consider instead using--console-log-level=verbose
to get a short list of SOME of what will be affected. Alternatively, keep using--full-result
but also use--log-file=<path>
to have the full output send to the log file. (Be sure to put each commandline argument on itâs own line.) -
Try running the command with all âAdvanced optionsâ in place. If it doesnât work, remove items like the
exclude
andinclude
filters, but be sure to LEAVE thedbpath
and eitherno-encryption
orpassphrase
(and possiblyencryption-module
) parameters -
Click the âRun âlist-broken-filesâ command nowâ button at the bottom of the page
Note: Because this is LIST-broken-files, not PURGE-broken-files, even though some message below mention marking remote files for deletion that does NOT actually happen.
Once youâre satisfied with the list-broken-files
results, just do the same steps as above but with selecting purge-broken-files
in step 2.
Below are samples of list-broken-files
when used with --log-level=verbose
on a SMALL test backup
No missing files (working backup)
The operation ListBrokenFiles has started
No broken filesets found in database, checking for missing remote files
Backend event: List - Started: ()
Listing remote folder ...
Backend event: List - Completed: (24 bytes)
Skipping operation because no files were found to be missing, and no filesets were recorded as broken.
Return code: 0
Purposefully removed `dblock` file (broken backup)
The operation ListBrokenFiles has started
No broken filesets found in database, checking for missing remote files
Backend event: List - Started: ()
Listing remote folder ...
Backend event: List - Completed: (23 bytes)
Marked 1 remote files for deletion
1 : 6/19/2018 11:48:31 AM (1638 match(es))
C:\Users\Me\AppData\Local\Mozilla\updates\308046B0AF4A39CB\active-update.xml (1.15 KB)
C:\Users\Me\AppData\Local\Mozilla\updates\308046B0AF4A39CB\updates.xml (11.57 KB)
C:\Users\Me\AppData\Local\Mozilla\updates\308046B0AF4A39CB\updates\last-update.log (6.67 KB)
C:\Users\Me\AppData\Local\Mozilla\updates\308046B0AF4A39CB\updates\0\update.mar (5.10 MB)
C:\Users\Me\AppData\Local\Mozilla\updates\308046B0AF4A39CB\updates\0\update.status (16 bytes)
... and 1633 more, (use --full-result to list all)
0 : 6/19/2018 11:55:18 AM (1638 match(es))
C:\Users\Me\AppData\Local\Mozilla\updates\308046B0AF4A39CB\active-update.xml (1.15 KB)
C:\Users\Me\AppData\Local\Mozilla\updates\308046B0AF4A39CB\updates.xml (11.57 KB)
C:\Users\Me\AppData\Local\Mozilla\updates\308046B0AF4A39CB\updates\last-update.log (6.67 KB)
C:\Users\Me\AppData\Local\Mozilla\updates\308046B0AF4A39CB\updates\0\update.mar (5.10 MB)
C:\Users\Me\AppData\Local\Mozilla\updates\308046B0AF4A39CB\updates\0\update.status (16 bytes)
... and 1633 more, (use --full-result to list all)
Return code: 0
Purposefully removed `dlist` file
The operation ListBrokenFiles has started
No broken filesets found in database, checking for missing remote files
Backend event: List - Started: ()
Listing remote folder ...
Backend event: List - Completed: (23 bytes)
Marked 1 remote files for deletion
No broken filesets found
Return code: 0
Purposefully removed `dindex` file
The operation ListBrokenFiles has started
No broken filesets found in database, checking for missing remote files
Backend event: List - Started: ()
Listing remote folder ...
Backend event: List - Completed: (23 bytes)
Marked 1 remote files for deletion
No broken filesets found
Return code: 0
Purposefully zero sized `dblock`, `dindex`, or `dlist` file
The operation ListBrokenFiles has started
No broken filesets found in database, checking for missing remote files
Backend event: List - Started: ()
Listing remote folder ...
Backend event: List - Completed: (27 bytes)
remote file duplicati-b4a7ed4aae4e8452e95db1738320ff601.dblock.zip is listed as Verified with size 0 but should be 52357878, please verify the sha256 hash "ZVJ2lnQdRJxxoCE81IkYS2M4lVWjMcVxzfTwtKhxgPg="
Skipping operation because no files were found to be missing, and no filesets were recorded as broken.
Return code: 0