Hi,
I am using rsync to backup from my server to a backup server that has been setup.
I can back up a directory with numerous files and folders and restore them but I have not learned how to "exclude" a specific folder from the rsync backup that runs via cron nightly.
I have tried these: rsync -av -cache/ -e ssh /home/httpd/vhosts/domain.com/httpdocs/ name@backup13.gnax.net:/fooname/domain rsync -avr - cache/ -e ssh /home/httpd/vhosts/domain.com/httpdocs/ name@backup13.gnax.net:/fooname/domain
I need to exclude these folders on every domain that is backed up: cache/ download/ pub/
I have also read the man pages but am not understanding.
How would I accomplish this?
Thank you!
Sincerely, Melinda Odom Design Hosting, Inc. www.designhosting.biz 479-471-0891 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 7/26/2006
Melinda Odom wrote:
I have also read the man pages but am not understanding.
What part of the '--exclude=[PATTERN]' part of the man page is giving you trouble? Is something not matching correctly, overmatching too much or...?
-te
Add this you your rsync command --exclude=**/cache --exclude **/download --exclude**/pub, and see if it gives you the required result. If not then please be more specific.
On 7/27/06, Troy Engel tengel@fluid.com wrote:
Melinda Odom wrote:
I have also read the man pages but am not understanding.
What part of the '--exclude=[PATTERN]' part of the man page is giving you trouble? Is something not matching correctly, overmatching too much or...?
-te
-- Troy Engel | Systems Engineer Fluid, Inc | http://www.fluid.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos