homepage Welcome to WebmasterWorld Guest from 54.205.119.163
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Rsync not working well
wheel




msg:4373989
 1:51 pm on Oct 13, 2011 (gmt 0)

I've got this in a cron job:
rsync -e ssh -azv /home/username NNN.NNN.NNN.NNN:/backup/webserver --exclude-from exclude-list.txt --delete-excluded

Then I have a file in the user's home directory that calls this script called exclude-list.txt with this:
/home/username/websites/directory1
/home/username/websites/directory2
/home/username/websites/logs
/home/username/directory3
/home/username/directory4

Yet the files in the exclude-list.txt are still being rsynced.

Any thoughts on why these files are not being excluded?

 

wheel




msg:4373992
 1:59 pm on Oct 13, 2011 (gmt 0)

BTW, running the rsync command at the command line works with no error messages but also does not exclude the directories.

I read somewhere that rsync uses only relative paths, but even changing the directories to be either ./home or ../home doesn't change anything. The cron job calls the rsync command like this:
/root/backup.sh

So I would assume that the files are relative from /root (but apparently not).

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved