我正在尝试使用重复性将文件备份到RunAbove提供的Swift对象存储服务。容器的名称是"备份",它有一个名为"web"的伪文件夹,我想在其中放置备份。
重复版本:0.6.24
蟒蛇版本: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中的伪文件夹?
此问题
已在重复性v0.7.08中修复(请参阅 http://duplicity.nongnu.org/CHANGELOG)
- 合并在 lp:~ghoz/duplicity/swift-prefix
- 在 swift 后端中添加使用路径的 abiliy,以便具有多个 备份到同一容器整齐地组织。