I've been trying to set up a scheduled backup for my server but i can't seem to get it working. I need to copy the contents of /var/www into a compressed file (tar?) in a folder in my home directory every 24 hours. I also want to perform a dump of all mysql databases every 24 hours and store it in another folder in my home directory. I want both backups to be named with the current date.
The server is running Ubuntu 12.04.1, i only have access through SSH so no graphical interfaces.
Is this possible to do? I've been looking into the TAR and rsync utility, but i'm not sure how to do it. If anyone can help me out if would be very appreciated.