3

我正在尝试使用重复性将文件备份到 RunAbove 提供的 Swift 对象存储服务。容器的名称是“备份”,它有一个名为“web”的伪文件夹,我想在其中放置备份。

重复版本:0.6.24
Python 版本:2.7.3
python-keystoneclient 1.0.0
python-swiftclient 2.3.1

设置必要的环境变量后,我尝试了以下命令:

duplicity --no-encryption /var/www swift://backup/web/

返回以下错误:

Listing of 'backup/web/' failed (attempt 1): JSONDecodeError: Expecting value: line 1 column 1 (char 0)

然后我尝试了:

duplicity --no-encryption --file-prefix web/ /var/www swift://backup

返回python错误:

Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
No signatures found, switching to full backup.
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1509, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1503, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1352, in main
do_backup(action)
File "/usr/bin/duplicity", line 1478, in do_backup
full_backup(col_stats)
File "/usr/bin/duplicity", line 545, in full_backup
globals.backend)
File "/usr/bin/duplicity", line 420, in write_multivol
sig_outfp.to_partial()
File "/usr/lib/python2.7/dist-packages/duplicity/dup_temp.py", line 168, in to_partial
self.tdp.rename(self.dirpath.append(self.partname))
File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 612, in rename
os.rename(self.name, new_path.name)
OSError: [Errno 2] No such file or directory

如何使用 duplicity 将文件备份到 OpenStack Swift 中的伪文件夹?

4

1 回答 1

0

此问题已在 duplicity v0.7.08 中修复(请参阅http://duplicity.nongnu.org/CHANGELOG

  • 合并到 lp:~ghoz/duplicity/swift-prefix
    • 在 swift 后端添加了使用路径的能力,以便将多个备份整齐地组织到同一个容器中。
于 2016-08-10T07:19:41.613 回答