I am running the following rsync command nightly:
rsync -varhR --delete --stats --files-from=files_to_include / /media/drive/snapshots/nightly.0
Here is the files_to_include file
home/
etc/
var/www/
If I take a look in /var/www/html/ I have several folders and files
If I take a look in /media/drive/snapshopshots/nightly.0/var/www/html/, its completely empty. No files or directories here.
So for some reason, that html folder is not getting sync'ed.
I manually tried running this command:
rsync -varhR --delete --stats /var/www/ /media/drive/snapshots/nightly.0
And then it sync'ed correctly. So something is going on with the --files-from flag I guess. Are there some sort of limitations to that option?
--files-from=files_to_includeon the command line? Did you try with a different--files-fromfile? If you createdfiles_to_includeon a Windows machine, did you check for spurious CRs? – Gilles Nov 22 '10 at 21:02-vto get verbose output. This will tell you WHAT its trying to sync. I was able to run that exact command (with a different destination) with no issues. – Andrew M. Nov 22 '10 at 21:25