Monday, November 10, 2008

Estimate the size of tar archive

If you ever need to find out how big your potential tar archive will be without creating it, try this little trick:

tar -cvf - XYZ | bzip2 | wc -c

Where XYZ is a file/directory you want to archive.

No comments: