On the company's webserver we have two harddrives. Apache is aware of
one of those harddrives and serves websites from that harddrive. The
other harddrive is not reachable via the web. I've written some cron
jobs that make a backup of various MySql databases and saves a copy to
that second hard drive.
For added security, I'd love to have a cron job (on my home Ubuntu
machine) that runs each night and downloads all the backups to my home
machine. I thought I could write a bash shell script using scp to do
this, but I now find out that one has to jump through several hoops
(create private/public keys, etc) to do it.
I'm wondering if there is an easier way to download the files, using
PHP? Any thoughts on this?
Comment