I need a sh script that I can run on a crontab.
the script needs to do the following
read ip-address, ssh password and mysql password from a file
connect to the ip-address by ssh using the ssh password
make a mysqldump of all databases using the mysql root password and download to local /backups/IP-TODAYSDATE/DB/
and rsync /var/www/ folder to the local /backups/IP-TODAYSDATE/WWW
then move on to the next in the list.
Some error handling would be nice also, an e-mail being sent for each fail with the ip-address perhaps.
The script will be run on a debian machine, connecting to centos servers.
29 freelance ont fait une offre moyenne de 131 $ pour ce travail
Hi. I can do the script for you. Have done similar during my work. I also have couple of improvement suggestions. But of course if you do not like them, I can do it your way.
I can write this in shell and give you a demo of this this on team-viewer . I have done similar kind of projects in past. Thank you, Rajiv kumar