LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-19-2006, 12:15 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
p7zip


I created a 10 gigabyte bzip2 file. That took a while. I left it going over night, so I don't know exactly how long it took. I really need to compress the best I can because I'm backing up my hard drive to another hard drive before I reinstall Linux, and space is limited. I want to use p7zip because it compresses better than bzip2. Can I compress the file that's already a compressed bzip2 file? I don't want to uncompress the bzip2 file and then compress it again again with p7zip. I have a few 10 gigabyte files, and that would take a while.
 
Old 08-19-2006, 01:43 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
If you try and make the compression files too big they don't compress as well. About 500 MB is the maximum size you will get good compression at. Even that is quite large for good compression. Bzip2 compresses as well as anything. P7zip might say it does better, but it doesn't. Why don't you back up your user files, in /home, with all your personal settings, and forget about the rest. Maybe back up /etc, too. You don't need to back up /usr, /tmp, /dev, /lib, /srv, /bin, /opt, /sys, or /var. That stuff is all reinstalled with the new os. Believe me, I've done this a lot. The way you are going about this is screwy. Learn how to use linux, the right way. You might consider repartitioning the disk so /home is a separate partition. This way whenever you want to install a new linux distro you just tell the partitioner not to format the partition you use for /home, and to give it /home as a mount point. You could dispense with all the pageantry, and just get it done.
 
Old 08-19-2006, 01:50 PM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Thanks for trying to help, but I am trying to get rid of the lvm2 shit on the hard drive, so I am formatting all of it. I will have a better plan for backup next time. I will keep a backup partition at the end of the drive and have a cron job to back up my important files while I am asleep at night. Can you show me where it says that 500 megabytes is the largest file that you can get good compression from? I have done lots of research on compression and even learned about huffman's coding, but I never saw that. I'd like to read more about what you are saying.
 
Old 05-20-2017, 06:09 AM   #4
starlyte
LQ Newbie
 
Registered: Mar 2007
Location: France, Languedoc-Roussillon (pre frontiere espagnol)
Distribution: Puppy Linux!
Posts: 16

Rep: Reputation: 0
Question Linux backup 7zip

Just a question, why do you need to backup so much to re-install Linux?
I'm looking for how to install an unrar system, but I'm curious.
I have 2TB of stockage, and only a 50GB partition serves as my Linux installation partition, with a 2nd of the same size, where I place an old installation while I try out the new one.
On the rest of the HDD's I have multimedia, text books, and other stuff, which stays where it is, with soft links to my /home. Of course downloads which I want to look at immediately go in the Linux /home, but when I finish with them, I move them to their appropriate place.
In this manner, I do regular mirror backups, to the 2nd HDD, or a CD/DVD, in case I install something, plus its' dependences, which bugs my installation.
I've been using this system for years, and find it the easiest way when there's lots of other material, which you keep whatever the Linux you use. I can just "dd" the contents of my 2TB discs to another, and I also will have a backup of the stuff soft linked, in case od HDD failure.
I must admit that compressing all the music, films and books I have by half would make it cheaper for a backup HDD, or I could use cloud, but I have sometimes lost things during compression/decompression.
 
Old 05-21-2017, 07:45 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,916

Rep: Reputation: 7016Reputation: 7016Reputation: 7016Reputation: 7016Reputation: 7016Reputation: 7016Reputation: 7016Reputation: 7016Reputation: 7016Reputation: 7016Reputation: 7016
Quote:
Originally Posted by starlyte View Post
Just a question, why do you need to backup so much to re-install Linux?
I'm looking for how to install an unrar system, but I'm curious.
I have 2TB of stockage, and only a 50GB partition serves as my Linux installation partition, with a 2nd of the same size, where I place an old installation while I try out the new one.
On the rest of the HDD's I have multimedia, text books, and other stuff, which stays where it is, with soft links to my /home. Of course downloads which I want to look at immediately go in the Linux /home, but when I finish with them, I move them to their appropriate place.
In this manner, I do regular mirror backups, to the 2nd HDD, or a CD/DVD, in case I install something, plus its' dependences, which bugs my installation.
I've been using this system for years, and find it the easiest way when there's lots of other material, which you keep whatever the Linux you use. I can just "dd" the contents of my 2TB discs to another, and I also will have a backup of the stuff soft linked, in case od HDD failure.
I must admit that compressing all the music, films and books I have by half would make it cheaper for a backup HDD, or I could use cloud, but I have sometimes lost things during compression/decompression.
I think that the OP figured this out...since this thread had been closed for NINE YEARS at this point.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto for p7zip please fakie_flip Linux - Software 4 08-13-2006 09:56 AM
Installed p7zip via apt-get... Where is it? GNewbie MEPIS 4 08-11-2006 05:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration