使用duplicity上传到Swift伪文件夹

2024-04-28 18:18:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用duplicity将文件备份到runover提供的Swift对象存储服务中。容器的名称是“backup”,它有一个名为“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/

返回以下错误:

^{pr2}$

然后我试着:

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中的伪文件夹?在


Tags: 文件tonoinselfwebbinusr
1条回答
网友
1楼 · 发布于 2024-04-28 18:18:20

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

  • Merged in lp:~ghoz/duplicity/swift-prefix
    • adds the abiliy to use path in the swift backend, in order to have multiple backups to the same container neatly organized.

相关问题 更多 >