当我决定在备份中包括其他文件夹时,我遇到了一个错误,我想知道如何纠正它。
我完整的duplicity
命令是
duplicity \
--include='/home/MINE/Shareable**' \
--include='/home/MINE/Pictures**' \
--volsize 10 \
--s3-multipart-chunk-size 5 \
--s3-use-new-style \
--asynchronous-upload \
/home/MINE/webapps/webapp2 \
s3://s3.amazonaws.com//MYBACKUP/MYMACHINE/apps/MINE/webapp2 \
--full-if-older-than 30D
如果我不包含--include
参数,则运行良好,一旦包含它们,我将收到FilePrefixError: /home/MINE/Shareable**
。
是的,所有这些路径确实存在。在我看来,似乎是重复性期望包含的路径是相对于/home/MINE/webapps/webapp2
而不是绝对路径。
我该如何纠正?
NOTE
duplicity \
--exclude='*' \
--include='/home/MINE/Shareable**' \
--include='/home/MINE/Pictures**' \
--volsize 10 \
--s3-multipart-chunk-size 5 \
--s3-use-new-style \
--asynchronous-upload \
/home/MINE/webapps/webapp2 \
s3://s3.amazonaws.com//MYBACKUP/MYMACHINE/apps/MINE/webapp2 \
--full-if-older-than 30D
以新消息结尾:
Last selection expression:
Command-line include glob: /home/MINE/Pictures**
only specifies that files be included. Because the default is to
include all files, the expression is redundant. Exiting because this
probably isn't what you meant.
知道了。
我需要切换包含和排除的顺序
duplicity \
--include='/home/MINE/Shareable' \
--include='/home/MINE/Pictures' \
--exclude='**' \
--volsize 10 \
--s3-multipart-chunk-size 5 \
--s3-use-new-style \
--asynchronous-upload \
/home/MINE/webapps/webapp2 \
s3://s3.amazonaws.com//MYBACKUP/MYMACHINE/apps/MINE/webapp2 \
--full-if-older-than 30D