When creating a backup using
rsync --include-from=inclusion-file, the inclusion file supports wildcards, so you can put
+ .*rc to include all resource files in your home directory, for example.
Zip also supports inclusion files, but wildcards fail to work, so you have to enter every single filename. (I would almost say this is a bug, or weird shortcoming. Can someone shed some light?)
$ cat files .*rc $ ls .*rc .ackrc .bashrc .mailrc $ zip -@ out < files zip warning: name not matched: .*rc
Does anyone know how to make wildcards work? The only workaround I can think about is to put the wildcard patterns on the command line itself, eg.
zip -@ out < files *.rc.
The question stands for all UNIX archiving tools. Zip is preferred, but not a requisite.