Web Host Chat - The UK hosting forum
Home QLinks Members Your Profile Register FAQ's Hosts Only Area SMS Alerts Game Servers
Go Back   Web Host Chat > Web Hosting Chat > Hosting Software and additional add-on products
Reply
 
LinkBack Thread Tools
Old 21st June 2006   #1 (permalink)
Platinum Bad Boy
 
Join Date: Apr 2005
Posts: 1,342
Jon-NC is on a distinguished road
rsync pros in here please :)

Hi,

Im having a bit of a problem excluding directories, its probably a silly error. I would appreciate some pointers.

My Rsync Script
rsync -az -r --verbose --progress --delete --ignore-errors --stats --exclude-from=/cygdrive/p/cwRsync/excludes.txt %EXCLUDES% "/cygdrive/C/tester" /cygdrive/c/poopoo/

Contained in the tester folder is a folder called wwwroot. I do not want this folder to be copied over.

Contents Of Excludes.txt

*[cC]ache*
*RECYCLE[DR]*
*.mp3
*.wma
*.rma
*.mov
*.vid
*.avi
- /cygdrive/c/tester/wwwroot/

If I add an exclude for .php files these will not be copied over so I know that the script is reading the excludes file. It just won't work for the folder.

What am I doing wrong?

Thanks,

Jon
__________________
Jon Rohan

Please note: My views are my own and not those of the company I work for.
Jon-NC is offline   Reply With Quote
Old 21st June 2006   #2 (permalink)
 
racksense's Avatar
 
Join Date: Jul 2003
Location: London
Posts: 1,054
racksense is on a distinguished road
Quote:
Originally Posted by JonRohan
Contained in the tester folder is a folder called wwwroot. I do not want this folder to be copied over.

- /cygdrive/c/tester/wwwroot/

If I add an exclude for .php files these will not be copied over so I know that the script is reading the excludes file. It just won't work for the folder.

What am I doing wrong?
I've not used file exclusion, but perhaps try removing the trailing slash?
__________________
Paul Civati
Rack Sense Ltd
Views expressed are my own and not those of the company.
Company reg no. 05115163, VAT reg no. GB 912 5238 45
racksense is offline   Reply With Quote
Old 21st June 2006   #3 (permalink)
Platinum Bad Boy
 
Join Date: Apr 2005
Posts: 1,342
Jon-NC is on a distinguished road
Umm, that didn't work unfortunately.

If I was using linux I would put an exclude for the temp directory as *\temp*, but as im in windows its a bit different.

Its got to be possible im sure of it.
__________________
Jon Rohan

Please note: My views are my own and not those of the company I work for.
Jon-NC is offline   Reply With Quote
Old 21st June 2006   #4 (permalink)
 
racksense's Avatar
 
Join Date: Jul 2003
Location: London
Posts: 1,054
racksense is on a distinguished road
Having re-read the man page, I think it may be to do with relative paths, and perhaps you should strip "/cygdrive/c/tester/" out of the exclude file entry.
__________________
Paul Civati
Rack Sense Ltd
Views expressed are my own and not those of the company.
Company reg no. 05115163, VAT reg no. GB 912 5238 45
racksense is offline   Reply With Quote
Old 21st June 2006   #5 (permalink)
Platinum Bad Boy
 
Join Date: Apr 2005
Posts: 1,342
Jon-NC is on a distinguished road
Your right, ive tried -/wwwroot which worked perfectly. Although any folders that match wwwroot will be missed.

Rsync has some excellent points but also some bad ones (above).

Thanks for your help Paul.
__________________
Jon Rohan

Please note: My views are my own and not those of the company I work for.
Jon-NC is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HOWTO] MySQL Cluster, Rsync, Unison: Set up a simple cluster alex.davies Web Hosting Articles and Guides 4 5th May 2008 03:01 PM
UK Based FTP, SFTP and rsync backup accounts - Pre Launch vaserv Web Hosting and Related Offers 0 22nd May 2006 10:10 AM

User Information
»REGISTER NOW!
Hosting Software and additional add-on products Visit here to discuss all aspects of hosting software including control panels, webmail and support systems


Quick forum search
 

Special Hosting Offers

Hot Stuff


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0