• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

Making backups with dump

I want to make backups daily with dump. The backup is going to be from one device to another in the same machine. The idea is that from monday to friday make an incremental backup, and sundays make a complete backup.
The directory size is about 22 GB.

I just need an examples or guide to the dump commands. I will inculde it in my cron.daily.

Thank you
1 Solution
/sbin/dump -0auf /dev/nst0 /usr/src
does a full dump of a filesystem containing /usr/src
you can make a lot of changes to this, eg.

dump -9auf /dev/st0 /dev/sda5
does a level 9 dump to a rewindable scsi tape0 dumping scsi disk 1 partition 5

if you just want a full dump every week or so, you will have a bunch of lines like line #1:
dump -0auf /dev/nst0 /dev/hda1
dump -0auf /dev/nst0 /dev/hda2
dump -0auf /dev/st0 /dev/hda3

why is last line different?  becuase it will automatically rewind the tape for you.  
IF you dump few things to st0 they will be overwritten, as after each dump tape will rewind to the beginning.
hope this helps
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now