Using --dry-run for restore

Hi, is it possible to use the option “–dry-run” in the “duplicati-cli restore …” command, just to check if the local files are in the same state, like the backup set?

Regards
Fred

OK, I’l replay myself :slight_smile: I have started some tests, and “–dry-run=true” has worked for “delete”, “backup” an the “restore” command as expected - it shows what would be changed and changes nothing.

Example for restore:

  • One file in the filesystem has been deleted. “restore” with “–dry-run” shows which file is missing:

duplicati-cli restore “webdavs://dav.box.com//dav/DOC?auth-username=${BOX_USER}&auth-password=${BOX_PW}&disable-nagling=true” \
–passphrase="$ENC_PW" \
–block-hash-algorithm=MD5 \
–file-hash-algorithm=MD5 \
–log-level=Profiling \
–log-file=/var/log/duplicati/Documents_$(date +%Y%m%d_%H%M%S).log \
–overwrite=false \
–restore-path=/vmdisk/TMP \
–dry-run=true \
/vmdisk/U/Install_DOC/

Messages:

[Dryrun]: Would patch metadata with remote data: /vmdisk/TMP/Installation1.doc
[Dryrun]: Would patch metadata with remote data: /vmdisk/TMP/Installation2.doc
[Dryrun]: Would patch metadata with remote data: /vmdisk/TMP/Installation part1.doc
. . .
[Dryrun]: Would patch metadata with remote data: /vmdisk/TMP/Update_V2.2.2.doc
[Dryrun]: Would patch metadata with remote data: /vmdisk/TMP/Update_V2.2.3.doc
Verifying restored files …
Could not find file “/vmdisk/TMP/Installation node.doc” => Could not find file "/vmdisk/TMP/Installation node1.doc"
Failed to restore 1 files
Restored 0 (0 Bytes) files to /vmdisk/TMP

Regards
Fred

1 Like