I'm trying to use rsync to back up data on a webserver, but I only want certain files copied over...this is the command I'm trying to use:
rsync --archive --progress --relative -n -v -e ssh --include "viewers.php3"
--include "/verify.php3" --include "/common.inc" --include "check.php3"
--exclude "*" /home/httpd/html/ someipaddress:/root/backup/
But it reports that it has 0 files to consider, and I'm not sure why. ls -R | grep viewers.php3 returns a long list, so I know the included files exist. And yes, I know -n makes it a dry-run...I want to make sure the list is correct before doing the real move. }:)
Any advice form folks with more rsync experience would be welcome... }:)
rsync --archive --progress --relative -n -v -e ssh --include "viewers.php3"
--include "/verify.php3" --include "/common.inc" --include "check.php3"
--exclude "*" /home/httpd/html/ someipaddress:/root/backup/
But it reports that it has 0 files to consider, and I'm not sure why. ls -R | grep viewers.php3 returns a long list, so I know the included files exist. And yes, I know -n makes it a dry-run...I want to make sure the list is correct before doing the real move. }:)
Any advice form folks with more rsync experience would be welcome... }:)
