Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jul 2007 18:42:20 -0700 (PDT)
From:      L Goodwin <>
Subject:   Correct way to use dump to backup a Samba share
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
I have a Samba share on a software RAID 1 array (using
gmirror) that I need to backup. I want to create a
shell script that does a level 0 backup every time to
(alternately) one of two USB drives. I plan to have
only ONE USB drive connected at a time. 

I want the script to mount the drive, perform the
backup, then unmount the drive so that it is ready for
someone who knows zip about computers to safely remove
and take offsite. 

Here are the steps I have for the script.
Is this all I need to do? Do I need any error handling
logic? THANKS!

# Mount the backup drive:
mount /dev/usb0

# Create the backup:
/sbin/dump -0u -f /dev/usb0 /sambavol

# Unmount the backup drive:
umount /dev/usb0

Shape Yahoo! in your own image.  Join our Network Research Panel today! 

Want to link to this message? Use this URL: <>