This script will keep six daily, three weekly and three monthly rsync hardlinked backup of /etc, /home, /var/www and /root. It will also create a gzipped MySQL dump of the whole server inside each backup.
You must have already have public key access to the remote user.