Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jul 2007 18:42:20 -0700 (PDT)
From:      L Goodwin <xrayv19@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Correct way to use dump to backup a Samba share
Message-ID:  <543595.21864.qm@web58112.mail.re3.yahoo.com>

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!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?543595.21864.qm>