Yes I did read that and I am trying to rsync to an rsynch server.
BackupServer1 - Has rsynch installed on it
FileServer1 - Also has rsync installed on it and back up the home directory to Backupserver1:///home/backup
If I run the same line below minus with or without the --password-file=/etc/rsyncpass I get prompted for the password. If I type in the password the backup goes perfectly. I want to run this in a script so I can put it in cron. Just to make sure I am on the right track here.
1) The script needs to be run from the Fileserver1 machine?
2) What should the permisions and syntax be on the /etc/rsynpass file? currently 640 and has a single line with the password typed in on the first line.
3) I am not entirely sure what this means but I would imagin if I spefically don't tell it to use something else like ssh or ftp it would use the built in transport?
"Note that this option is only useful when accessing a rsync server using the built in transport, not when using a remote shell as the transport"
Maybe I am missing something there.
4)My /etc/rsyncd.conf files on both the backupserver1 and the filserver1 are both identical and both list both machine IP's as hosts and point to a secrets file that have the correct user name and password in a file with a single line username
assword
Still stuck, I mean its not too complicated what I want to accomplish, run an rsync cron to copy the contents of /home from one machine to another every hour. when I run the script do I need to specify anything on the command line or will it work with a simple ./rsynscript.sh
It does run but like I said it prompts for a password.