Restore a folder, but how?


today I wanted to do restore a folder. On Restore, I pick a revision, pick a folder in “Restore to”, then click open folders in the bottom part of the screen. See screenshot. Now next click is on Restore. And what does Duplicacy do? It restores THE WHOLE REVISION. I cannot use it this way.

What can I do?


Are you sure it restores everything in the revision? The restore command will preserve the directory directory so parent directories of KHM will be restored too but nothing out of this directory chain will be restored.

Can you check the arguments passed to the restore command in ~/.duplicacy-web/logs/duplicacy_web.log? The log should be like:

2022/05/02 14:00:51 Running /Users/gchen/.duplicacy-web/bin/duplicacy_osx_x64_2.7.2 [-log restore -r 1 -storage sftp -overwrite -stats -- dir1/dir2/*]
1 Like

Thanks for your reply. Yes, it restores everything, all files. What does the log mean?
I can’t load a single file as well. Same behaviour. In effect that means “no restore” at all, because I cannot restore the whole terabyte beast just in order to restore some files :smiley:

2022-05-03 10:00:08.695 INFO REPOSITORY_SET Repository set to M:/Downloads/Restore
2022-05-03 10:00:08.738 INFO STORAGE_SET Storage set to C:/Disk/WD50/Backup/Duplicacy
2022-05-03 10:00:08.738 INFO SNAPSHOT_FILTER Parsing filter file \\?\C:\Users\Michel\.duplicacy-web\repositories\localhost\restore\MTG\Forge\cards\KHM\*
2022-05-03 10:00:08.738 INFO SNAPSHOT_FILTER Loaded 0 include/exclude pattern(s)
2022-05-03 10:00:08.766 INFO RESTORE_INPLACE Forcing in-place mode with a non-default preference path
2022-05-03 10:00:11.787 INFO SNAPSHOT_FILTER Parsing filter file \\?\C:\Users\Michel\.duplicacy-web\repositories\localhost\restore\.duplicacy\filters
2022-05-03 10:00:11.787 INFO SNAPSHOT_FILTER Loaded 0 include/exclude pattern(s)
2022-05-03 10:00:11.788 INFO RESTORE_START Restoring M:/Downloads/Restore to revision 5

Not this log file, but the main log file which should be C:\Users\Michel\.duplicacy-web\logs/duplicacy_web.log.

2022-05-03 10:00:08.738 INFO SNAPSHOT_FILTER Parsing filter file \\?\C:\Users\Michel\.duplicacy-web\repositories\localhost\restore\MTG\Forge\cards\KHM\*

Something is wrong here. It looks like the path to be restored (passed as the argument to the restore command) somehow ended up as the filter file. I’m not sure how that can happen.

Not much I found out here. It happens independent from revision. Some files can be restored directly, on others in the same revision it restores just everything. This is the command line of the process:

C:\Users\Michel/.duplicacy-web/bin/duplicacy_win_x64_2.7.2.exe -log restore -r 4 -storage WD50 -overwrite -stats -- @@Folder/DSCF7786.JPG

This is because @ has a special meaning – the file name that follows is treated as a filters file containing more include/exclude patterns: Include Exclude Patterns · gilbertchen/duplicacy Wiki · GitHub

The work around this issue, enter -- +@@Folder/DSCF7786.JPG in the Options text input.