如果使用 rdiff-backup 指令對某個特定日期進行備份,則應採用什麼格式來還原該特定日期的檔案。
rdiff-bakup -r "dateformat" backup/a.txt /destination-dir
謝謝..
答案1
來自 rdiff-backup(1) 手冊:
5. A date format of the form YYYY/MM/DD, YYYY-MM-DD, MM/DD/YYYY, or
MM-DD-YYYY, which indicates midnight on the day in question,
relative to the current timezone settings. For instance,
"2002/3/5", "03-05-2002", and "2002-3-05" all mean March 5th,
2002.