Cloud Computing, Service Management, travel and more
2010-06-20
rsync / grsync and exclude files
You'd think that these tools would be straightforward to use. Took me over 30 minutes to get grsync to work correctly for excluding some files from source.
This is the syntax you need (you can add this to "additional options" in grsync)
--exclude-from=
In the exclude file, you need patterns in the order:
*.exe
*.htm
(they don't work without the leading asterisk. go figure)
30 mins, you're lucky, I've spent, on and off, several hours trying to get grsync to exclude folders listed in a file. --exclude=xclude_this/ works OK, but --exclude=xclude_list.txt, where xclude_list.txt contains as its only line, xclude_this/ DOES NOT. Figure that one out.
30 mins, you're lucky, I've spent, on and off, several hours trying to get grsync to exclude folders listed in a file. --exclude=xclude_this/ works OK, but --exclude=xclude_list.txt, where xclude_list.txt contains as its only line, xclude_this/ DOES NOT. Figure that one out.
ReplyDelete