From owner-freebsd-questions@FreeBSD.ORG Mon Nov 22 15:34:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06D0916A4CE for ; Mon, 22 Nov 2004 15:34:00 +0000 (GMT) Received: from defang8.net.ohio-state.edu (defang8.net.ohio-state.edu [128.146.216.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id 680A443D48 for ; Mon, 22 Nov 2004 15:33:59 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from osu.edu (mail-store1.service.ohio-state.edu [128.146.216.22]) iAMFXsLm013045; Mon, 22 Nov 2004 10:33:54 -0500 Received: from [128.146.216.20] by mail1.service.ohio-state.edu (mshttpd); Mon, 22 Nov 2004 10:33:54 -0500 From: ANISH MISTRY To: Odhiambo Washington Message-ID: Date: Mon, 22 Nov 2004 10:33:54 -0500 X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.14 (built Mar 18 2003) MIME-Version: 1.0 Content-Language: en X-Accept-Language: en Priority: normal Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit X-CanItPRO-Stream: default X-Spam-Score: 0 () X-Scanned-By: CanIt (www . canit . ca) cc: freebsd-questions@freebsd.org Subject: Re: Nightly backup using CD-ROM - how do i? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2004 15:34:00 -0000 ----- Original Message ----- From: Odhiambo Washington Date: Monday, November 22, 2004 10:26 am Subject: Re: Nightly backup using CD-ROM - how do i? > * Anish Mistry [20041111 21:10]: wrote: > > On Thursday 11 November 2004 11:45 am, you wrote: > > > * Anish Mistry [20041110 03:21]: wrote: > > > > > > [snip] > > > > > > Hey Anish, > > > > > > Thank you so much for your script. > > > > > > I am not quite a newbie on Unix, but your script has gotten me > lost,> > such that I feel like a newbie ;) > > > > > > Could you kindly explain to me, step-by-step, how it works, > please?> > > > > > #!/bin/sh > > > > # the date > > > > DATESTRING=`date +"%Y%m%d"` > > > > BACKUP_DIR=/usr/local/var/backup > > > > CD_DEVICE=/dev/acd0c > > > > > > Defining the date of the backups to copy, it assumes the > current. Set the > > directory where the already tar'ed files are locations, and also > set the > > CDROM device. > > Now that is where I have another question: I did not see when you > created any files in $BACKUP_DIR/ > Did you use another script to create the files? Yes. > > [snip] > > > > > cd $BACKUP_DIR > > > > # get previous multisession info > > > > MSINFO=`/usr/sbin/burncd -f $CD_DEVICE msinfo` > > > > if [ "$MSINFO" != "" ] > > > > then > > > > MULTISESSION="-C $MSINFO -M $CD_DEVICE" > > > > else > > > > echo "First session." > > > > fi > > Here we probe the CD to get the last session's track info. If > there is not > > last session info, then that means that it's a blank cd so we > don't add > > the multisession info to the mkisofs command. > > So you re-use the CDs sometimes? Does that mean your backups do not > actually fill a CD? I suppose you are not backing up a whole system > anyway. > > All else is now clear to me. > > Thank you again in advance. > > > > -Wash > > http://www.netmeister.org/news/learn2quote.html > > -- > +======================================================================+ > |\ _,,,---,,_ | Odhiambo Washington > Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online > Ltd. www.wananchi.com > |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 > '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 > +======================================================================+ > Death is nature's way of telling you to slow down > -- Anish Mistry