Welcome to WebmasterWorld Guest from 107.20.5.156

Forum Moderators: bakedjake

Message Too Old, No Replies

Rsync not working well

     

wheel

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

WebmasterWorld Senior Member wheel is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

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

WebmasterWorld Senior Member wheel is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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).
 

Featured Threads

Hot Threads This Week

Hot Threads This Month