简体   繁体   中英

Duplicity include with wildcards

I want to backup all homes of my lxc containers with duplicity and i use (commandline simplified to the problem):

duplicity --include '/data/lxc/**/rootfs/home' --exclude '/data/lxc'

which does not match the homes, while

duplicity --include '/data/lxc/oneofthecontainers/rootfs/home' --exclude '/data/lxc'

works.

further testing shows, that

duplicity --include '/data/lxc/oneofthecontainers/rootfs/home/**' --exclude '/data/lxc'

does not work either. The manpage of duplicity tells me first match wins and * and ** are allowed as wildcards, where ** matches everything and * only one path component.

我仍然不知道,为什么这不起作用,但是我用--include-globbing-filelist和一个包含"+ ""- "条目的文件列表解决了它,现在它可以了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM