[英]Clarify file/dir list to include in duply profile
I have defined /tmp/
as my source directory.我已将
/tmp/
定义为我的源目录。 I want to backup only in1/
and in2/
subfolders from it.我只想从中备份
in1/
和in2/
子文件夹。 What lines do I need in profile's exclude
file?配置文件的
exclude
文件中需要哪些行?
/tmp/a
├── in1
│ └── in.txt
├── in2
│ └── in.txt
└── out.txt
According to duplicity man page's dir/foo
example, I tried:根据口是心非的手册页的
dir/foo
示例,我尝试过:
+ in1/
+ in2/
- **
But that did not work and I got error as:但这没有用,我得到的错误是:
Reading globbing filelist /path/to/duply_profile/exclude
Fatal Error: The file specification
in1/
cannot match any files in the base directory
/tmp
Useful file specifications begin with the base directory or some
pattern (such as '**') which matches the base directory.
better use up-to-date man page from duplicity's website https://duplicity.us/stable/duplicity.1.html#file-selection最好使用口是心非的网站https://duplicity.us/stable/duplicity.1.html#file-selection中的最新手册页
not sure why the example relative paths is in there, but as the error states you will need something along the lines不确定为什么示例相对路径在那里,但是由于错误说明您将需要一些东西
+ /tmp/in1/
+ /tmp/in2/
- **
feel free to post a bug ticket on https://gitlab.com/duplicity/duplicity/-/issues so maybe someday some kind soul would make it work with relative paths.请随时在https://gitlab.com/duplicity/duplicity/-/issues上发布错误票,所以也许有一天某个善良的人会让它与相对路径一起工作。
I figured that the following specification work:我认为以下规范有效:
+ **in1/
+ **in2/
- **
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.