filter question

Igor Serebryany igor47 at moomers.org
Thu Feb 21 22:41:45 GMT 2008


Hi,

 	I've been trying to come up with a way to do the following
 	operation.  I have a /home folder and I want to transfer only the
 	/mail/ folders inside the home folder along with their parent
 	folders.  So, if I have the following files:

 	/home/bob/document.doc
 	/home/bob/pr0n/pr0nFile
 	/home/bob/mail/file1
 	/home/bob/mail/spam/viagra
 	/home/mike/kitten.jpg
 	/home/mike/misc/mail/inbox

 	I want to do "rsync ***MAGIC*** /home /destination" and have
 	/destination look like this:

 	/destination/bob/mail/file1
 	/destination/bob/mail/spam/viagra
 	/destination/mike/misc/mail
 	/destination/mike/misc/mail/inbox

 	I can't figure out what combination of options would allow me to do
 	this, even after bashing my head against various filter sets for
 	about 1.5 hours.  Can anyone help me?

Thanks!

--Igor


More information about the rsync mailing list