From owner-freebsd-questions Wed May 16 22:11:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (cfedde.dsl.frii.net [216.17.139.141]) by hub.freebsd.org (Postfix) with ESMTP id B1EA337B422 for ; Wed, 16 May 2001 22:11:17 -0700 (PDT) (envelope-from cfedde@fedde.littleton.co.us) Received: from fedde.littleton.co.us (localhost [127.0.0.1]) by fedde.littleton.co.us (8.11.2/8.11.2) with ESMTP id f4H5Ap842630; Wed, 16 May 2001 23:10:51 -0600 (MDT) Message-Id: <200105170510.f4H5Ap842630@fedde.littleton.co.us> To: "Francisco Reyes" Cc: "stellayu@ca.inter.net" , "Stephen Hovey" , "freebsd-questions@FreeBSD.ORG" Subject: Re: simple back up method In-Reply-To: <200105162240.SAA60457@sanson.reyes.somos.net> From: Chris Fedde Date: Wed, 16 May 2001 23:10:51 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 16 May 2001 19:42:51 -0400 "Francisco Reyes" wrote: +------------------ | On Wed, 16 May 2001 17:53:03 -0400 (EDT), Stephen Hovey wrote: | | > | >I would forget tar and cpio (I had restoration | >problems when using tape) - the thing Ive found | >the most reliable that comes with freebsd is pax | >email if you want a sample backup and restore line. | | Could I also get some samples too? +------------------ Using pax (and a symlink) to move a hierarchy to another disk mkdir /disk/3/var.db.pkg cd /var/db/pkg pax -rwvpe . /disk/3/var.db.pkg cd .. mv pkg pkg- ln -s /disk/3/var.db.pkg pkg rm -r pkg- Using pax to pick and choose files to backup find . -name *.[ch] | pax -w | gzip > cfiles.tar.gz Restore these to another directory mkdir ../d mv cfiles.tar.gz ../d cd d gzcat cfiles.tar.gz | tar -xvf - Still for basic daily file system backups I prefer to use dump(8). -- Chris Fedde To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message