Ok here we go.
I have mounted remote drives and I am trying to get rsync to just sync certain directories within these mounted folders.
Inside these mounted drives I have a folder called DR
Im trying to just sync /mnt/prodnas02/*/DR/*
What Im trying to use is ..
rsync -rhu --progress --include-from=/root/rsync-include/drfolders --log-file=/var/log/copy.log /mnt/prodnas02 /mnt/backup01/
within my drfolders file I have something like
I've tried several different lines and include or exclude lines but for some reason I am truley missing something.
Any assistance with the syntax would be great.
Thanks in advance.
I'm learning to use rsync myself :)
Originally Posted by SteveMosher
Here is the best example file that I've found:
excluding directories from rsync
To understand the patterns, read this:
rsync MAN Page
For the man page on patterns:
(scroll down to "INCLUDE/EXCLUDE PATTERN RULES")