I have a 7 GB file I need to restore and since the web-ui keeps stopping the download whenever the lockscreen goes on (I’m not leaving the restore page), I am forced to use the CLI. But duplicacy just keeps giving me
Incorrect Usage. NAME: duplicacy restore - Restore the repository to a previously saved snapshot USAGE: duplicacy restore [command options] [--] [pattern] ... OPTIONS: -r <revision> the revision number of the snapshot (required) -hash detect file differences by hash (rather than size and timestamp) -overwrite overwrite existing files in the repository -delete delete files not in the snapshot -ignore-owner do not set the original uid/gid on restored files -stats show statistics during and after restore -threads <n> number of downloading threads -limit-rate <kB/s> the maximum download rate (in kilobytes/sec) -storage <storage name> restore from the specified storage instead of the default one -key <private key> the RSA private key to decrypt file chunks -persist continue processing despite chunk errors or existing files (without -overwrite), reporting any affected files -key-passphrase <private key passphrase> the passphrase to decrypt the RSA private key
Since the mistake is in the pattern and it doesn’t explain anything about the requirements for the pattern, this is not very helpful.
All I’m trying to do is to tell it to restore one specific file, whose name I know but not its exact path. Here are some of the patterns I tried:
./duplicacy restore -ignore-owner -r 2 -threads 4 -stats +*/gogo externals/international assembly 1 dec 2015 part1-1080p.mp4 ./duplicacy restore -ignore-owner -r 2 -threads 4 -stats -- i:.*/gogo externals/international assembly 1 dec 2015 part1-1080p.mp4 e:.* ./duplicacy restore -r 2 -ignore-owner -threads 4 -stats -- +*/gogo* -* ./duplicacy restore -ignore-owner -r 2 -threads 4 -stats -- *gogo externals/international assembly 1 dec 2015 part1-1080p.mp4 ...
I’ve tried at least two dozen variants and it’s extremely cumbersome because every single time, it asks me for the ssh password and the storage password.
Could someone advise me (and others who are trying to perform this simple operation) how to use the patterns correctly?