我刚刚安装了 17.10 的全新版本,并想使用预安装的工具设置备份文件夹。
作为默认设置,它会保存/home
目录并忽略垃圾箱和~/Downloads
。
我将备份位置设置为var/backups
。
启动第一次备份时,它会在几秒钟后停止并打印出此错误消息:
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1546, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1540, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1391, in main
do_backup(action)
File "/usr/bin/duplicity", line 1510, in do_backup
full_backup(col_stats)
File "/usr/bin/duplicity", line 575, in full_backup
globals.backend)
File "/usr/bin/duplicity", line 456, in write_multivol
(tdp, dest_filename, vol_num)))
File "/usr/lib/python2.7/dist-packages/duplicity/asyncscheduler.py", line 146, in schedule_task
return self.__run_synchronously(fn, params)
File "/usr/lib/python2.7/dist-packages/duplicity/asyncscheduler.py", line 172, in __run_synchronously
ret = fn(*params)
File "/usr/bin/duplicity", line 455, in <lambda>
vol_num: put(tdp, dest_filename, vol_num),
File "/usr/bin/duplicity", line 344, in put
backend.put(tdp, dest_filename)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 376, in inner_retry
% exception_traceback())
File "/usr/lib/python2.7/dist-packages/duplicity/util.py", line 52, in exception_traceback
return uexc(msg)
File "/usr/lib/python2.7/dist-packages/duplicity/util.py", line 80, in uexc
e = unicode(e).encode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 736: ordinal not in range(128)
我究竟做错了什么?
答案1
我的备份也运行良好,然后出现了完全相同的回溯。我也在使用 Ubuntu 17.10。我发现我备份到的 microSD 卡出于某种原因处于只读状态。将其取出并小心插入解决了我的问题。