To make this I have googled this stite and found bits and pieces all over, added some myself sjau, falko and mphayesuk is some of the unknown contributors. My problem is to backup daily - thus keeping an per day backup for a week - thus the last 7 days. My focus is to recover from total crash were the server is re-build. therefore i do not care about the /etc folders and because the mail files is volitile and offencive large. so without further chatting. my script that run on Code: crontab -e 45 23 * * * /root/make-backup Code: [root@alpha ~]# vi make-backup Code: #!/bin/bash find /root/ispconfig > /root/backup-files find /home/admispconfig >> /root/backup-files DATE=`date +%Y-%A` BACKUPNAME="use-yr-server-name-here-"$DATE # echo $date # echo $BACKUPNAME USER=root PASSWORD=use-yr-own-password-here HOST=localhost DESTINATION=use-yr-destination-server-fqdn-or-ip-here for i in $(echo 'SHOW DATABASES;' | mysql -u$USER -p$PASSWORD -h$HOST|grep -v '^Database$'); do mysqldump \ -u$USER -p$PASSWORD -h$HOST \ -Q -c -C --add-drop-table --add-locks --quick --lock-tables \ $i > /home/backup/$BACKUPNAME-$i.sql; done; tar cvzf /home/backup/$BACKUPNAME"-backup.tar.gz" --files-from=/root/backup-files --no-recursion /usr/bin/scp /home/backup/$BACKUPNAME* $DESTINATION:/home/backup/ rm /root/backup-files Ok about the ssh, I have set-up ssh to use 1024 bit RSA keys for authentication. this allows the one server to log into the other without user intervention and can be done safely and securely. Aski in this threat if you need the HOWTO If some of you clever people can optimise and improve - please feel free to do so, I'd welcome comment.