Msg#: 4373987 posted 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?
Msg#: 4373987 posted 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).