Results 1 to 2 of 2
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.
Example:
/mnt/bkmasterbackup1
/mnt/bkmasterbackup2
/mnt/bkmediabackup1
/mnt/prodnas02
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-18-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 1
rsync assistance
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.
Example:
/mnt/bkmasterbackup1
/mnt/bkmasterbackup2
/mnt/bkmediabackup1
/mnt/prodnas02
/mnt/prodnas03
/mnt/prodnas04
/mnt/prodnas05
Inside these mounted drives I have a folder called DR
Example:
user(at)machine# pwd
/mnt/prodnas02/ArdentHS/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
/*/*/DR/*
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.
- 12-18-2009 #2Just Joined!
- Join Date
- Dec 2009
- Location
- Highlands
- Posts
- 37
I'm learning to use rsync myself

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:
http://gd.tuwien.ac.at/utils/admin-t...ync/rsync.html
(scroll down to "INCLUDE/EXCLUDE PATTERN RULES")
.


Reply With Quote

