Backups

From KallestadWiki

Jump to: navigation, search

A few little notes about Backing up files

rsync

Rsync is a powerful backup utility. Mike Rubel has a good set of information available, along with some downloadable shell scripts for creating automated backups.

The simple command for a quick one time update is:

rsync -a source dest

Once that is in place:

rsync -a --delete source dest

the --delete flag removes files from the last sync that are no longer there.

mysqldump

Mysql databases can be backed up easily with the mysqldump command

mysqldump --alldatabases -u username -p >backup.sql

or

mysqldump -u username -p database >backup.sql
Personal tools