Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Apr 2005 11:17:36 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        FreeBSD - Questions <freebsd-questions@freebsd.org>
Subject:   Re: Tar chunks
Message-ID:  <20050417091736.GB40272@slackbox.xs4all.nl>
In-Reply-To: <4261A2A6.1000407@makeworld.com>
References:  <4261A2A6.1000407@makeworld.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--NMuMz9nt05w80d4+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Apr 16, 2005 at 06:41:26PM -0500, Chris wrote:
> Can tar of some other compression util be set to archive a directory in
> chunks of say, 650 meg?
>=20

Something like

tar cjf - /dir/to/backup |split -b 650m - bkupname-

should do the trick. Note that using a pipe saves s lot of space. This
will produce backups in the form of bkupname-aa, bkupname-ab etc.

Restoring the backup would be something like:

cd /parent/of/backupdir; cat /path/to/bkup/bkupname-* |tar xjf -

Note that you need to have all backup files on a disk for this to work
properly.

Roland
--=20
R.F. Smith                           /"\    ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l      \ /    No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/         X     No Word docs in e-mail
public key: http://www.keyserver.net / \    Respect for open standards

--NMuMz9nt05w80d4+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCYimwEnfvsMMhpyURAk5cAJ9m8CPdN9VPWADJcygVJ60iWmLN2gCgsKzP
azwBMuifj4T4gmia0pzd1Jg=
=1c+J
-----END PGP SIGNATURE-----

--NMuMz9nt05w80d4+--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050417091736.GB40272>