How to backup server content?

June 16, 2015 2.1k views
Backups MySQL


How can I save the content of my server (files, database) to my computer?


1 Answer

For a one-off or infrequent backup you could dump the database and FTP the files. If you’re looking for a more regular process, you could consider a CRON job to dump your database, put the dumped file into a directory and Rsync your files and database dumps. Rsync is nice because it has parameters that will only copy files that have changed, so you’re not re-copying everything each time. There are other solutions out there too. Bacula is one that I believe uses Rsync underneath.

Have another answer? Share your knowledge.