18.04:Duplicity 停止工作

18.04:Duplicity 停止工作

在阅读相关帖子后,我意识到 duplicity 对于备份来说是多么脆弱。无论如何,由于一些奇怪的原因,deja-dup 停止工作:

  • 首先我收到类似以下错误(可能之前对 keyring / seahorse / gpg 做了一些小改动,但我记不清具体情况了
  • 然后我 apt-get 删除了 deja-dup 和 duplicity
  • snap 安装了两者的最新版本

现在我陷入了一个新的“已知”错误:

备份在恢复时不断要求输入加密密码

没人(包括我)能够真正从中恢复过来。

下面是我从命令行启动“snap”版 deja-dup 时的命令行输出

export DEJA_DUP_DEBUG=1  
deja-dup  --backup  

这是错误信息:

UPLICITY: . Found primary backup chain with matching signature chain:
DUPLICITY: . -------------------------
DUPLICITY: . Chain start time: Thu May 27 11:42:53 2021
DUPLICITY: . Chain end time: Thu Jun 24 13:00:50 2021
DUPLICITY: . Number of contained backup sets: 5
DUPLICITY: . Total number of contained volumes: 1933
DUPLICITY: .  Type of backup set:                            Time:      Num volumes:
DUPLICITY: .                 Full         Thu May 27 11:42:53 2021              1817
DUPLICITY: .          Incremental         Wed Jun  2 17:49:47 2021                 3
DUPLICITY: .          Incremental         Thu Jun  3 03:32:43 2021                 2
DUPLICITY: .          Incremental         Thu Jun 24 12:04:03 2021               110
DUPLICITY: .          Incremental         Thu Jun 24 13:00:50 2021                 1
DUPLICITY: . -------------------------
DUPLICITY: . No orphaned or incomplete backup sets found.

DUPLICITY: INFO 1
DUPLICITY: . PASSPHRASE variable not set, asking user.

DUPLICITY: DEBUG 1
DUPLICITY: . Releasing lockfile b'/home/myUsername/snap/deja-dup/common/.cache/deja-dup/e9d3b7f870b518ba61d7edb618232bb5/lockfile'

DUPLICITY: DEBUG 1
DUPLICITY: . Removing still remembered temporary file /home/myUsername/snap/deja-dup/common/.cache/deja-dup/tmp/duplicity-fyu_uk0c-tempdir/mkstemp-slki6otd-1

DUPLICITY: DEBUG 1
DUPLICITY: . Releasing lockfile b'/home/myUsername/snap/deja-dup/common/.cache/deja-dup/e9d3b7f870b518ba61d7edb618232bb5/lockfile'

DUPLICITY: ERROR 30 EOFError
DUPLICITY: . Traceback (innermost last):
DUPLICITY: .   File "/snap/deja-dup/427/bin/duplicity", line 117, in <module>
DUPLICITY: .     with_tempdir(main)
DUPLICITY: .   File "/snap/deja-dup/427/bin/duplicity", line 103, in with_tempdir
DUPLICITY: .     fn()
DUPLICITY: .   File "/snap/deja-dup/427/lib/python3.8/site-packages/duplicity/dup_main.py", line 1535, in main
DUPLICITY: .     do_backup(action)
DUPLICITY: .   File "/snap/deja-dup/427/lib/python3.8/site-packages/duplicity/dup_main.py", line 1610, in do_backup
DUPLICITY: .     config.gpg_profile.passphrase = get_passphrase(1, action)
DUPLICITY: .   File "/snap/deja-dup/427/lib/python3.8/site-packages/duplicity/dup_main.py", line 177, in get_passphrase
DUPLICITY: .     pass1 = getpass_safe(_(u"GnuPG passphrase:") + u" ")
DUPLICITY: .   File "/snap/deja-dup/427/lib/python3.8/site-packages/duplicity/dup_main.py", line 74, in getpass_safe
DUPLICITY: .     return getpass.getpass(message)
DUPLICITY: .   File "/snap/deja-dup/427/usr/lib/python3.8/getpass.py", line 91, in unix_getpass
DUPLICITY: .     passwd = fallback_getpass(prompt, stream)
DUPLICITY: .   File "/snap/deja-dup/427/usr/lib/python3.8/getpass.py", line 126, in fallback_getpass
DUPLICITY: .     return _raw_input(prompt, stream)
DUPLICITY: .   File "/snap/deja-dup/427/usr/lib/python3.8/getpass.py", line 148, in _raw_input
DUPLICITY: .     raise EOFError
DUPLICITY: .  EOFError
DUPLICITY: . 

我当前的 snap 版本是:

deja-dup 42.7 duplicity 0.8.19

答案1

问题在于我使用了不同的密码进行备份,而 duplicity 在备份时没有发出警告。因此,为了修复这个问题,我不得不删除使用了不同密码的文件。解释如下这里

相关内容