Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
25
rated 0 times [  25] [ 0]  / answers: 1 / hits: 37410  / 3 Years ago, fri, may 14, 2021, 11:42:54

Using the duplicity command, I need to specify the following:



  • a specific folder to restore

  • indicate time and date from which to restore

  • indicate the destination to restore to


How can I specify these 3 things using the duplicity command?


More From » restore

 Answers
5

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:



duplicity -t 3D --file-to-restore temp/logs file:///backup/location /temp/logs


Sample2: I want to restore my file /temp/logs/app-error.log which is backed-up 3 days ago into the same folder:



duplicity -t 3D --file-to-restore temp/logs/app-error.log file:///backup/location /temp/logs/app-error.log


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:



duplicity -t 3D --file-to-restore temp/logs sftp://[email protected]/my_backup /temp/logs

[#23348] Sunday, May 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
byishted

Total Points: 469
Total Questions: 113
Total Answers: 113

Location: Tajikistan
Member since Sun, Aug 29, 2021
3 Years ago
;