Webmaster Forums Biz

Full Version: Backing up your server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know any software for backing up your server to your computer?
The easiest method for backup is using cron.

tar -czvf filename.tar.gz /path/to/directory/for/backup

That will tar.gz a directory recursively. If you also want to backup mysql then add a mysql dump BEFORE the tar command.

mysqldump -uUSERNAME -pPASSWORD mysqldatabasename > /path/to/your/backup/folder/filename.sql

Once the backup is created getting it on a local computer is the more difficult task. I normally cron and ftp to another unix server the backup file. Not sure of the best method for Windows if that's your desktop. I guess if you have FTP open and know the login details (ip, username,password) then it should be ok.
I have made a detailed post on my blog regarding backing up websites and blogs in various ways with different tools.
You can check it here:
http://digital-musings.com/2007/11/16/a-...ress-blog/

If you find the information useful, please let me know through a comment.
Usually I use the cPanel Backup feature, lazy I know but I've not any other option there is a lot on my space to backup and I do it usually once a week + MySQL databases (which I tend to backup more).
Reference URL's