[xubuntu] Rsync Setup

view story

http://ubuntuforums.org – I've new to Xubuntu and I'm trying to figure out how to write a complex setting of Rsync or Rdiff-Backup. I need to write a backup that take what's on my remote server and back it up to a specific folder on my computer. I would also like to run a backup of mysql this way too if possible. It would be nice to keep like the last 5 backups and no more. I would like to automate this if possible. (Hardware)