Using the duplicity command, I need to specify the following:
- specify folder to restore
- indicate time and date from which to restore from
- indicate the destination to restore to
How can a specify these 3 things using the duplicity command?
duplicityrestore
Using the duplicity command, I need to specify the following:
How can a specify these 3 things using the duplicity command?
Best Answer
That's correct, even if it tells "--file-to-restore", you can enter any file or folder path (without the "/" sign at the beginning of it, for example "temp/logs") at "foldername" and any "destination folder" (with the "/"sign at the beginning of it, for example "/temp/logs") to the command.
Sample: I want to restore my /temp/logs which is backed-up 3 days ago into the same folder:
Sample2: I want to restore my file /temp/logs/app-error.log which is backed-up 3 days ago into the same folder:
Note that you have to give a full destination path for the file.
Sample3: My backup stays at an ftp server=my.ftp.server with user=root at the location=my_backup, the same scenario with #1: