Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 2009 19:09:47 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Jay Hall <jhall@socket.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Backup Size
Message-ID:  <20090811170947.GA88617@slackbox.xs4all.nl>
In-Reply-To: <D0D2566C-8912-4F77-BB54-714C7DB4B2D2@socket.net>
References:  <6206A242-7226-48E3-8D09-A1D3A651F2A8@socket.net> <20090810162528.GA49364@slackbox.xs4all.nl> <20090810170921.GC49364@slackbox.xs4all.nl> <D0D2566C-8912-4F77-BB54-714C7DB4B2D2@socket.net>

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

[-- Attachment #1 --]
On Mon, Aug 10, 2009 at 09:24:19PM -0500, Jay Hall wrote:
> 
> On Aug 10, 2009, at 12:09 PM, Roland Smith wrote:
> 
> >> The fact that you are using tar also plays a part. Tar has some  
> >> overhead to
> >> store information about the files it contains.
> 
> Is it possible to calculate the amount of overhead tar will use?

Just execute the tar command, and dump the output to /dev/null through dd:
tar -cf - /etc |dd of=/dev/null
tar: Removing leading '/' from member names
3160+0 records in
3160+0 records out
1617920 bytes transferred in 0.057690 secs (28045115 bytes/sec)

This will give you the exact size without writing anything to disk.

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkqBpdsACgkQEnfvsMMhpyXt6wCeNAXOJ0BDs/vVk4DAi1wybZVX
qLUAnRS3LC5zAUCc0G7a1Pq5wdgdOsa1
=Xdht
-----END PGP SIGNATURE-----
help

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