Date: Mon, 22 Nov 2004 10:33:54 -0500 From: ANISH MISTRY <mistry.7@osu.edu> To: Odhiambo Washington <wash@wananchi.com> Cc: freebsd-questions@freebsd.org Subject: Re: Nightly backup using CD-ROM - how do i? Message-ID: <f1150ff148de.f148def1150f@osu.edu>
next in thread | raw e-mail | index | archive | help
----- Original Message ----- From: Odhiambo Washington <wash@wananchi.com> Date: Monday, November 22, 2004 10:26 am Subject: Re: Nightly backup using CD-ROM - how do i? > * Anish Mistry <mistry.7@osu.edu> [20041111 21:10]: wrote: > > On Thursday 11 November 2004 11:45 am, you wrote: > > > * Anish Mistry <mistry.7@osu.edu> [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 > <wash@wananchi.com>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f1150ff148de.f148def1150f>