[kwlug-disc] Backup and Recovery in the 21st Century

Khalid Baheyeldin kb at 2bits.com
Fri Jan 8 18:50:10 EST 2010


Dump is a very old utility, yet very useful.

It works at the filesystem level, so if you have multiple filesystems,
you have to backup each one separately. It is also filesystem type
specific (e.g. and ext2/3 backup is different from an XFS backup).

Here is how to use it, briefly:

Assume that /dev/sda1 is mounted as /, and it is the file system that
you want to backup. Also assume that /mnt/backup is /dev/sdb1 and
it is the backup drive.

Daily incremental backup

/sbin/dump -1 -u -f /mnt/backup/incremental.`date +%w` /

So, we end up with incremental.Mon, incremental.Tue, ...etc. for each
day of the week.

Full backup (say weekly, on a Sunday):

/sbin/dump -0 -u -f /mnt/backup/full.1 /

Next week, the daily incremental will overwrite the oldest daily incremental
automatically.

To restore, or read the content of the backup, use the "restore" command.

More on these links:

http://www.nethamilton.net/docs/dump.html

http://surf.st.seikei.ac.jp/~nakano/dump-restore/dump-restore-mini-HOWTO.en.html
-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20100108/b9751e58/attachment.htm>


More information about the kwlug-disc mailing list