我想用双重性来备份我的lxc容器的所有家庭并使用(命令行简化为问题):
duplicity --include '/data/lxc/**/rootfs/home' --exclude '/data/lxc'
与家庭不匹配,而
duplicity --include '/data/lxc/oneofthecontainers/rootfs/home' --exclude '/data/lxc'
作品。
进一步测试显示,
duplicity --include '/data/lxc/oneofthecontainers/rootfs/home/**' --exclude '/data/lxc'
也不起作用。 duplicity手册页告诉我第一场比赛获胜,*
和**
被允许作为通配符,其中**
匹配所有内容而*
只匹配一个路径组件。
答案 0 :(得分:0)
我仍然不知道,为什么这不起作用,但我使用--include-globbing-filelist
和包含/ {排除"+ "
和"- "
条目的文件列表解决了它,现在它可以正常工作。