What is the best compression method for huge folders?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is the best compression method for huge folders?
I need to format my backup storage HDD, it contains my library of anime, family movies, and other lil stuff I keep on it. The HDD is 1TB in size and I'm using roughly 700 gb. I need to compress some folders so I can store it on my linux HDD(640gb) while it is being formated. With linux I can use many of the compression methods but I don't know which one will give me the best results for huge folders. So which method would be the best for me?
I need to format my backup storage HDD, it contains my library of anime, family movies, and other lil stuff I keep on it. The HDD is 1TB in size and I'm using roughly 700 gb. I need to compress some folders so I can store it on my linux HDD(640gb) while it is being formated. With linux I can use many of the compression methods but I don't know which one will give me the best results for huge folders. So which method would be the best for me?
It really depends, but if you're talking raw compression ratio bzip2 offers a high level of compression and works relatively fast. Are you going to be taring the directories up? Do you need to access individual files in the tarballs? If both answered yes then I would change my answer from bzip2 to perhaps zip running at highest compression ratio.
But for raw compression ratio, bzip2 is pretty good.
Don't know if it helps but you could also compress it like a KNOPPIX image-my DSL goes from 200+MB to 48MB after compressing-is that comparable to bz2?
I'm not going to be accessing the files through the compression. Just gonna compress them, move them to my linux HDD, format backup HDD, and move/uncompress them back to the backup HDD. Thanks for the reply I'll use the bzip2 method and will tar up the folder since I have directories in them.
Unless you have a lot of text files (very few binaries) then you are not going to fit 640GB + 700GB (compressed) on to a 1TB drive. Your best bet is to back up your files (/home) and your configuration files (/etc) and anything else you cannot replace on your linux drive. Then reinstall linux after the format.
That being said. Don't take my word for it; try some archiving programs out.
Basic archiving programs commonly used are:
Tar
Cpio
The 4 main compression types are:
Zip (plain'ole Zip files)
GZip
XZ-Utils (lzma)
BZip2
If you want to compress a folder with tar and bzip2 then use:
Unless you have a lot of text files (very few binaries) then you are not going to fit 640GB + 700GB (compressed) on to a 1TB drive. Your best bet is to back up your files (/home) and your configuration files (/etc) and anything else you cannot replace on your linux drive. Then reinstall linux after the format.
That being said. Don't take my word for it; try some archiving programs out.
Basic archiving programs commonly used are:
Tar
Cpio
The 4 main compression types are:
Zip (plain'ole Zip files)
GZip
XZ-Utils (lzma)
BZip2
If you want to compress a folder with tar and bzip2 then use:
You must have miss understood me. My backup HDD is 1tb and I'm using 700 gb of that. I want to compress the 700gb so it will fit on my 640gb HDD which linux is installed on so I can format the 1tb HDD.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.