filter question

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


 	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:


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


 	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?



More information about the rsync mailing list