Rsync issue
Hi, I am trying to rsync a file to remote system. have a shell script for it, by running which i can copy the file. But during the process it prompts me for password of the remote system. How can I automate this process?. How can I make the script to take any default password?. This is required because, I have to add this job to crontab. One way I found from a site is to set a environment variable called RSYNC_PASSWORD and the password in that. I created such env variable. by echoing the var I am finding the value also. But Rsync is not considering it as the default password. This variable is stored in /etc/profile file.
Another way is having a password file. I tried a password file, and given that as --password-file <password file name with full path>. This didn't work. I also tried by creating a simple text file having just password in it. and gave the full path in --password-file option. Still didn't work.
Can anybody please help me in solving,
ThanX in advance
-Regards
Ajit
__________________
Ajit
|