I followed the advice given in the question
Rsync filter: copying one pattern only to setup a command line I need to backup only the dotfiles .inF*
Yet with the command:
rsync -av --include='.inF*' --include='*/' --exclude='*' /0ale/ \
root@lambda2:/0ale/
I obtain that the directory structure gets mirrored, but no dotfile is copied. The same command with a test pattern
rsync -av --include='test*' --include='*/' --exclude='*' /0ale/ \
root@lambda2:/0ale/
correctly copies the test1.txt
file so it is a problem with dotfiles only. Any hints?
.
at the beginning get treated as amerge
directive rather than being seen as part of the file name? You may want to try+ .inF*
instead. Maybe use--filter
with appropriate flags rather than include/exclude. See the rsync man page for details. – user Aug 15 '11 at 09:43