2

我有一个在 Microsoft Azure 上运行的 Ubuntu 16.04 VM。我还有一个 Azure 存储帐户。我正在尝试使用 duplicity 将文件夹从 Ubuntu 备份到 azure 容器下的子文件夹。

我正在使用以下命令:

/usr/bin/duplicity -v4 --volsize=25 --log-file=/home/<<user_name>>/duplicity-test/logs/duplicity-log.log --full-if-older-than 30D --asynchronous-upload  /home/<<user_name>>/duplicity-test/alf_data azure://bart-test-2/alf_data

这失败并显示错误消息:

Could not create Azure container: The requested URI does not represent any resource on the server.

但是,如果我没有在 Azure URL 上指定子文件夹,则不会出现错误,如下所示:

/usr/bin/duplicity -v4 --volsize=25 --log-file=/home/<<user_name>>/duplicity-test/logs/duplicity-log.log --full-if-older-than 30D --asynchronous-upload  /home/<<user_name>>/duplicity-test/alf_data azure://bart-test-2

但在后一种情况下,重复性只是将文件放在 Azure 容器的根文件夹中,而不是我想要的子文件夹中。

有没有办法让 Duplicity 在 Azure 容器中使用子文件夹?

谢谢维普尔。

4

1 回答 1

1

看来他们不允许在路径中使用“/”。Azure 论坛上的这篇文章说:

我们不允许在路径中使用“/”,即$root 下的虚拟文件夹。您必须创建容器。有关详细信息,请参阅http://msdn.microsoft.com/en-us/library/ee395424.aspx 。

我认为子目录名称实际上是唯一的,您不需要完整路径。您只需使用子目录名称就可以逃脱。

你有没有尝试过:

/usr/bin/duplicity -v4 --volsize=25 --log-file=/home/<<user_name>>/duplicity-test/logs/duplicity-log.log --full-if-older-than 30D --asynchronous-upload  /home/<<user_name>>/duplicity-test/alf_data azure://alf_data
于 2017-03-27T10:49:38.710 回答