Back up files...
rsmith at xs4all.nl
Wed Apr 9 19:34:47 UTC 2008
On Wed, Apr 09, 2008 at 08:38:28PM +0200, Dick Hoogendijk wrote:
> On Wed, 9 Apr 2008 18:16:45 +0200
> Roland Smith <rsmith at xs4all.nl> wrote:
> > What I would recommend is to buy a large harddisk with a USB
> > connection and use that to store your backups. Make your backups with
> > the dump(8) command, and compress the dump using gzip(1). E.g. to
> > dump the root partition:
> > dump -0 -a -C 8 -h 0 -L -u -f - / |gzip
> > >/where/to/put/root-0-20080409.gz
> OK. Right. And what is exactly the command for restore?
> Something like "gunzip dumpfile.gz | restore rf dumpfile"
Close. It's 'gunzip dumpfile.gz | restore -rf -' since you are
restoring from standard input.
If you just want to restore a couple of files instead of the whole
thing, you should use '-i' instead of '-r'. But if you're using '-r',
you should make a pristine filesystem with newfs first.
Personally I use 'gzip -1' for compression because it's fast. Using
bzip2 usually isn't worth it; backups will be a couple of percents
smaller but take two to three times as long!
The script that I use to make backups of all my UFS partitions can be
found on my shell-scripts page under the name 'dodumps', in case anyone
is interested: http://www.xs4all.nl/~rsmith/software/scripts.html
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080409/178b3ecd/attachment.pgp
More information about the freebsd-questions