Date: Tue, 23 Nov 2004 15:38:56 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Derrick Ryalls <ryallsd@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Odd Tar behavior Message-ID: <20041123133856.GB13159@orion.daedalusnetworks.priv> In-Reply-To: <d5eb95fc041122170046a2b495@mail.gmail.com> References: <d5eb95fc041122170046a2b495@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-11-22 17:00, Derrick Ryalls <ryallsd@gmail.com> wrote: > I just observed some really strange behavior with a tar file in my > backup script. Using a command like tar -cf /someplace/www.tar www > (when in /usr/local) it produces a 2 Meg file. Under webroot, there > are several files that are 500+ meg in size, so this size value is > suspect, though it only took a few seconds to create the archive. > > The weird part comes in when I untar www.tar. Suddenly all files > are there in their full sized glory, leading me to believe that I am > only saving file pointers or something. Also, it isn't a > compression issue as I am not using compression, and the files > themselves really aren't very compressable. Whatever the case, how > do I use tar to create reliable backups, including large files? Hmm, check that you are not archiving symbolic links instead of the files themselves. If that is the case, you might want to use the -H option of tar.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041123133856.GB13159>