Tar chunks

Roland Smith rsmith at xs4all.nl
Sun Apr 17 02:17:39 PDT 2005


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?
> 

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
-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050417/45f04d66/attachment.bin


More information about the freebsd-questions mailing list