使用Duplicity从某些增量恢复文件

鉴于以下备份集…

Found primary backup chain with matching signature chain: ------------------------- Chain start time: Tue Jun 21 11:27:26 2011 Chain end time: Tue Jun 21 11:27:59 2011 Number of contained backup sets: 2 Total number of contained volumes: 2 Type of backup set: Time: Num volumes: Full Tue Jun 21 11:27:26 2011 1 Incremental Tue Jun 21 11:27:59 2011 1 

如果我运行以下命令,它工作(1308655646从2011年6月21日星期二11:27:26转换):

 duplicity --no-encryption --restore-time 1308655646 --file-to-restore ORIG_FILE \ file:///storage/test/ restored-file.txt 

但是,如果我运行以下命令,它将从最新的设置恢复。

 duplicity --no-encryption --restore-time 2011-06-21T11:27:26 --file-to-restore \ ORIG_FILE file:///storage/test/ restored-file.txt 

我什么时候做错了? 我更喜欢第二个选项,因为我不想手动进行转换。

另外,我注意到文件名有不同的时间戳…

 duplicity-inc.20110621T172520Z.to.20110621T172537Z.manifest duplicity-full.20110621T172520Z.vol1.difftar.gz 

1308655646秒以来是2011-06-21 11:27:26 UTC 2011-06-21T11:27:26是11:27:26在你的时区。 我会冒险猜测你住在西半球,所以你指定的date还在将来,而且双重性给了你最新的备份。 通过2011-06-21T11:27:26Z or 2011-06-21T11:27:26 + 00:00`表示UTCdate。

(我刚刚检查过,并且重复的时间报告使用当地时间,你是否使用不同的时区设置运行它?)