Date: Wed, 16 May 2001 23:10:51 -0600 From: Chris Fedde <chris@fedde.littleton.co.us> To: "Francisco Reyes" <freyes@inch.com> Cc: "stellayu@ca.inter.net" <stellayu@ca.inter.net>, "Stephen Hovey" <shovey@buffnet.net>, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG> Subject: Re: simple back up method Message-ID: <200105170510.f4H5Ap842630@fedde.littleton.co.us> In-Reply-To: <200105162240.SAA60457@sanson.reyes.somos.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105170510.f4H5Ap842630>
