[英]Duplicity FilePrefixError When Including Absolute Path
I am running across an error happening when I decide to include other folders in my backup, and I am wondering how I can correct it.当我决定在备份中包含其他文件夹时,我遇到了一个错误,我想知道如何纠正它。
My full duplicity
command is我完全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
If I do not include the --include
arguments, it runs fine, once they are included I receive a FilePrefixError: /home/MINE/Shareable**
.如果我不包含--include
参数,它运行良好,一旦包含它们,我就会收到FilePrefixError: /home/MINE/Shareable**
。
Yes, all these paths do exist.是的,所有这些路径都存在。 To me, it seems as if duplicity is expecting the included paths to be relative to /home/MINE/webapps/webapp2
rather than absolute paths.对我来说,似乎双重性期望包含的路径相对于/home/MINE/webapps/webapp2
而不是绝对路径。
How can I correct this?我该如何纠正?
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
ends with a new message:以一条新消息结束:
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.
Got it.知道了。
I needed to switch around the ordering of the includes and excludes我需要切换包含和排除的顺序
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.