From owner-freebsd-questions@FreeBSD.ORG Wed Nov 10 00:20:48 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 C8CAE16A508 for ; Wed, 10 Nov 2004 00:20:48 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2779E43D41 for ; Wed, 10 Nov 2004 00:20:46 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.0.5] (adsl-68-250-184-205.dsl.wotnoh.ameritech.net [68.250.184.205]) (authenticated bits=0)iAA01vUJ090911 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 9 Nov 2004 19:01:58 -0500 (EST) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-questions@freebsd.org Date: Tue, 9 Nov 2004 19:23:22 -0500 User-Agent: KMail/1.7 References: <20041109133932.GB41233@ns2.wananchi.com> <20041109164018.R266@wonkity.com> In-Reply-To: <20041109164018.R266@wonkity.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_C+VkBl7gGMYK+xC" Message-Id: <200411091923.30281.mistry.7@osu.edu> X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on crumpet.united-ware.com X-Content-Filtered-By: Mailman/MimeDel 2.1.1 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: Wed, 10 Nov 2004 00:20:49 -0000 --Boundary-00=_C+VkBl7gGMYK+xC Content-Type: multipart/signed; boundary="nextPart1693951.au5ZfYkCLr"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1693951.au5ZfYkCLr Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 09 November 2004 06:49 pm, Warren Block wrote: > On Tue, 9 Nov 2004, Odhiambo Washington wrote: > > Now instead of the above, I would like to pipe the output > > to be written to a CD-ROM mounted on the same box. I am > > hoping burncd or some other app can be used to do that: > > > > tar czf - / | burncd -arg1 arg2 blah... > > tar czf - / | burncd -e -smax data - fixate > > That just puts raw data on the CD, so you'll have to pull it off as a > file. You can use mkisofs to build an ISO filesystem so the CD will be > readable on other systems. See the man pages for burncd and mkisofs. > > > So every night I just mount a blank CD and let a cron job > > do the backup;) > > > > I know there could be gotchas, like when the CD is not empty, etc. > > tar has problems with special files; dump is better in that regard. > There are other problems, like the size limits of CD or DVD. > > -Warren Block * Rapid City, South Dakota USA This is what I use. Shell script attached. Basically it matches the files in: $BACKUP_DIR/$DATESTRING*.tar.gz It then creates and ISO file and burns to a CD, and fires off an email if=20 the backup fails. It also incrementally adds stuff to a CD, so you can=20 put in a blank CD and it'll keep adding stuff everytime the script is run=20 until the space fills up, and then you'll get an email. =2D-=20 Anish Mistry --nextPart1693951.au5ZfYkCLr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBkV+CxqA5ziudZT0RAgZKAKCYHAI89iGqudBvYFQfobWIVgF8SwCgreQI J0W+DScLEg2VfdKb0JP0eZ0= =FP4q -----END PGP SIGNATURE----- --nextPart1693951.au5ZfYkCLr-- --Boundary-00=_C+VkBl7gGMYK+xC--