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>

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

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

On Mon, Aug 10, 2009 at 09:24:19PM -0500, Jay Hall wrote:
>=20
> On Aug 10, 2009, at 12:09 PM, Roland Smith wrote:
>=20
> >> The fact that you are using tar also plays a part. Tar has some =20
> >> overhead to
> >> store information about the files it contains.
>=20
> 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=3D/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
--=20
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)

--gKMricLos+KVdGMg
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

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

--gKMricLos+KVdGMg--



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