exclude hidden files and directories from rsync
Hi,
I am using --exclude=".DAV" to exclude .DAV folders from rsync jobs.
But .DAV folder is also copying in target path.
This is my job when I do : ps -ef | grep rsync
www 2188 1614 0 12:07 pts/4 00:00:00 /local/rsync --exclude=".DAV" --rsync-path=/local/rsync -vt --stats --progress --compress -e /usr/bin/ssh -x -p 22 --partial-dir=/local/partial --block-size=5000 --temp-dir=/local/inbound --timeout=3600 /local/myFiles/.DAV/ignore.zip www@www.dev.com:"/local/myFiles/.DAV/ignore.zip"
Can you please tell me what I am wrong here? why .DAV hidden folder is not excluded.
PS: my rsync command is created from java which will check for every 15 mins for new files. If it finds any new files, then creates a rsync job.
Thanks.
|