Just a short question, maybe someone has an answer for me. I backup my server using "Rsync".
Why does this command exclude nothing:
while this excludes the files within the two folders as desired?
(wildcard "*" two times)
Actually I wanted to exclude the whole directories, not only the files. But it did not work. Rsync completely ignored my exclude patterns.
Why does this command exclude nothing:
Code:
rsync -a --exclude={"/boot/lost+found/","/dev/"} -e 'ssh -p23' / [email protected]:/backup/
while this excludes the files within the two folders as desired?
Code:
rsync -a --exclude={"/boot/lost+found/*","/dev/*"} -e 'ssh -p23' / [email protected]:/backup/
(wildcard "*" two times)
Actually I wanted to exclude the whole directories, not only the files. But it did not work. Rsync completely ignored my exclude patterns.