From owner-freebsd-questions@FreeBSD.ORG Sun Jul 8 02:09:02 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8EF1016A46C for ; Sun, 8 Jul 2007 02:09:02 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: from web58112.mail.re3.yahoo.com (web58112.mail.re3.yahoo.com [68.142.236.135]) by mx1.freebsd.org (Postfix) with SMTP id 239C313C484 for ; Sun, 8 Jul 2007 02:09:01 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: (qmail 23142 invoked by uid 60001); 8 Jul 2007 01:42:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=ttvYYNs5leM4rbjkr014ybyWjrSGnqD01RJ7U3deIHQKGK77OGe5G+u94lzcC8mGie1TdYKXIBDzMneTqvDvTGLCBFjIt8QXV9UrrGNyIOAjreF6VSSEeagwiosa2cRoLweZSOgFIiPY6WoEbdveDA9IZ8DQyuWw/pwbi0nrjJI=; X-YMail-OSG: nd.XyY8VM1lPUYMP47Ga.qLQJkTubqOigWrgOmDw3gFP33916Tp_j5nYtfikkQhEWYM11.dO8ojxHnIYWUCA.l5tDQOI.HSxOOdm Received: from [131.191.24.2] by web58112.mail.re3.yahoo.com via HTTP; Sat, 07 Jul 2007 18:42:20 PDT Date: Sat, 7 Jul 2007 18:42:20 -0700 (PDT) From: L Goodwin To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <543595.21864.qm@web58112.mail.re3.yahoo.com> Subject: Correct way to use dump to backup a Samba share X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 02:09:02 -0000 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