Linux

rdiff-backup 命令恢復日期

  • June 2, 2010

如果使用 rdiff-backup 命令對某個特定日期進行了備份,那麼應該使用什麼格式來恢復該特定日期的文件。

       rdiff-bakup -r "dateformat" backup/a.txt /destination-dir

謝謝..

從 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.

引用自:https://serverfault.com/questions/147371