I've written a simple shell script that does a backup of my mysql databases everyday with cron jobs. My script works pretty well, but its only backing it up to directory on the same machine. I'm trying to figure out how to have the script send the file to a remote server using scp. for the life of me I can't figure out how to do this in a script since scp prompts for a password to the remote host. I know this can be done I just can't figure it out. I'm guessing it has something to do with the rsa keys.
Any help would be greatly appreciated.
Thanks in advanced
Any help would be greatly appreciated.
Thanks in advanced
