口是心非:正在重新启动备份,但当前加密设置与原始设置不匹配

口是心非:正在重新启动备份,但当前加密设置与原始设置不匹配

我使用口是心非的方式将我的文件备份到 Backblaze B2。直到几天前,这种方法还很有效。我已经删除了本地 Python 库,但重新安装了。我还将密码提取到我source现在包含的第二个脚本中。不知何故上传失败,我一遍又一遍地收到此消息:

Ausdruckbasierte Dateiliste wird gelesen /home/mu/.config/exclude-b2.txt
Lokale und entfernte Metadaten sind bereits synchron, kein Abgleich benötigt.
Last inc backup left a partial set, restarting.
Letzte vollständige Sicherung: Mon Sep  3 09:37:45 2018
Traceback (innermost last):
  File "/usr/bin/duplicity", line 1560, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1546, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1398, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1528, in do_backup
    incremental_backup(sig_chain)
  File "/usr/bin/duplicity", line 653, in incremental_backup
    dummy_backup(tarblock_iter)
  File "/usr/bin/duplicity", line 227, in dummy_backup
    while tarblock_iter.next():
  File "/usr/lib64/python2.7/site-packages/duplicity/diffdir.py", line 523, in next
    result = self.process(self.input_iter.next())
  File "/usr/lib64/python2.7/site-packages/duplicity/diffdir.py", line 195, in get_delta_iter
    for new_path, sig_path in collated:
  File "/usr/lib64/python2.7/site-packages/duplicity/diffdir.py", line 286, in collate2iters
    relem2 = riter2.next()
  File "/usr/lib64/python2.7/site-packages/duplicity/diffdir.py", line 354, in combine_path_iters
    refresh_triple_list(triple_list)
  File "/usr/lib64/python2.7/site-packages/duplicity/diffdir.py", line 341, in refresh_triple_list
    new_triple = get_triple(old_triple[1])
  File "/usr/lib64/python2.7/site-packages/duplicity/diffdir.py", line 327, in get_triple
    path = path_iter_list[iter_index].next()
  File "/usr/lib64/python2.7/site-packages/duplicity/diffdir.py", line 239, in sigtar2path_iter
    for tarinfo in tf:
  File "/usr/lib64/python2.7/tarfile.py", line 2510, in next
    tarinfo = self.tarfile.next()
  File "/usr/lib64/python2.7/tarfile.py", line 2378, in next
    raise ReadError(str(e))
 ReadError: missing or bad subsequent header

我上网访问 Backblaze B2,删除了最后的存档和签名文件,希望它能简单地恢复,但事实并非如此。口是心非的输出现在如下:

Reading globbing filelist /home/mu/.config/exclude-b2.txt
Local and Remote metadata are synchronized, no sync needed.
Warning, found the following local orphaned signature file:
duplicity-new-signatures.20181005T090005Z.to.20181005T100005Z.sigtar.part
Last full backup left a partial set, restarting.
Last full backup date: Fri Oct  5 12:00:05 2018
Reading globbing filelist /home/mu/.config/exclude-b2.txt
RESTART: The first volume failed to upload before termination.
         Restart is impossible...starting backup from beginning.
Reading globbing filelist /home/mu/.config/exclude-b2.txt
Local and Remote metadata are synchronized, no sync needed.
Warning, found the following local orphaned signature file:
duplicity-new-signatures.20181005T090005Z.to.20181005T100005Z.sigtar.part
Warning, found signatures but no corresponding backup files
Last inc backup left a partial set, restarting.
Last full backup date: Mon Sep  3 09:37:45 2018
No signatures found, switching to full backup.
Reading globbing filelist /home/mu/.config/exclude-b2.txt
RESTART: Volumes 67 to 68 failed to upload before termination.
         Restarting backup at volume 67.
Restarting backup, but current encryption settings do not match original settings

调用如下:

PASSPHRASE=$passphrase \
    duplicity \
    --full-if-older-than 90D \
    --exclude-filelist ~/.config/exclude-b2.txt \
    --progress \
    --gpg-options '--cipher-algo AES256' \
    ~/ \
    b2://$b2_key_id:$b2_key@$b2_bucket

所有变量均已设置,我已启用set -u以未定义的变量退出,并检查set -x该命令是否符合我的预期。

我可能可以在线删除所有文件并重新开始全新的完整备份,但我想了解这个问题,以便在再次发生该问题时解决它。

答案1

看来我没有删除属于失败备份的所有文件。现在我已经删除了它们,备份恢复正常。

相关内容