Backup-Restoration

無法恢復重複備份

  • September 3, 2016

我已經使用 duplicity 0.6.26 創建了我的主文件夾到遠端系統的備份:

duplicity --no-compression --no-encryption . scp://...

在主文件夾中時。

現在我似乎無法恢復備份。我已將遠端伺服器中的所有內容複製到本地目錄,並且文件如下所示:

$ ls
duplicity-full-signatures.20151002T175740Z.sigtar
duplicity-full.20151002T175740Z.vol280.difftar
duplicity-full.20151002T175740Z.vol141.difftar
duplicity-full.20151002T175740Z.manifest
duplicity-full.20151002T175740Z.vol281.difftar
duplicity-full.20151002T175740Z.vol142.difftar
...

我可以列出備份的內容:

$ duplicity list --no-encryption --no-compression file:///Users/user/Backup/
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Fri Oct  2 20:57:40 2015
Fri Oct  2 20:57:38 2015 .
Fri Oct 17 21:01:31 2014 .CFUserTextEncoding
Fri Oct  2 20:19:07 2015 .DS_Store
Fri May 22 09:13:51 2015 .PyCharm40
Fri May 22 10:30:21 2015 .PyCharm40/restart
Wed May 13 19:15:04 2015 .PyCharm40/restart/restarter
Fri Oct  2 20:45:37 2015 .Trash
...

但是在嘗試恢復時,我得到“ No files found in archive - nothing restored.

$ duplicity restore --no-encryption --no-compression file:///Users/user/Backup/ /tmp/P
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Fri Oct  2 20:57:40 2015
No files found in archive - nothing restored.

我該怎麼做才能恢復文件?

看來.difftar文件畢竟被壓縮了。將它們重命名為.difftar.gz. 一定是重複的錯誤。

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