Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Linux Programming
  4. How to backup Linux OS?

How to backup Linux OS?

Scheduled Pinned Locked Moved Linux Programming
helpannouncementlinuxhardwaredata-structures
11 Posts 3 Posters 25 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    I am having (the usual ) problems with my Linux OS . I do not need to backup my data, but I like to have a backup of my OS. I have plenty of vacant space on my hardware, but not sure how to accomplish this task. I have used "dd" and it confuses "grub"....even after "update-grub" . For curious - at present there is a bug ( D_BUS message) and it killed the OS - cannot recover it. And there is "application not responding ..." issue with certain version... ( Yes I have disabled "automatic update...") I am not sure RAID5 would work - it would probably pass the problem to the array... I am open to suggestions.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #2

    If I lose the OS then I just re-install from the base image. However take a look at linux backup - Google Search[^].

    L 1 Reply Last reply
    0
    • L Lost User

      If I lose the OS then I just re-install from the base image. However take a look at linux backup - Google Search[^].

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #3

      Going back/ reinstall the original ISO package is not practical when other packages are installed.

      L 1 Reply Last reply
      0
      • L Lost User

        Going back/ reinstall the original ISO package is not practical when other packages are installed.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #4

        Then you need a backup system that can clone the entire drive.

        L 1 Reply Last reply
        0
        • L Lost User

          Then you need a backup system that can clone the entire drive.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #5

          Are you saying I cannot backup the OS partition only ?

          L 1 Reply Last reply
          0
          • L Lost User

            Are you saying I cannot backup the OS partition only ?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #6

            No, but to recover that partition if it gets destroyed would need a backup/restore application that is self bootable. Hence the Google search I posted; you will need to check the various products to see if this feature is available.

            1 Reply Last reply
            0
            • L Lost User

              I am having (the usual ) problems with my Linux OS . I do not need to backup my data, but I like to have a backup of my OS. I have plenty of vacant space on my hardware, but not sure how to accomplish this task. I have used "dd" and it confuses "grub"....even after "update-grub" . For curious - at present there is a bug ( D_BUS message) and it killed the OS - cannot recover it. And there is "application not responding ..." issue with certain version... ( Yes I have disabled "automatic update...") I am not sure RAID5 would work - it would probably pass the problem to the array... I am open to suggestions.

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #7

              Member 14968771 wrote:

              I do not need to backup my data, but I like to have a backup of my OS.

              First question you have to ask yourself is why? If you're keen to be able to get your system going again after a crash, it can be done. But literally every last thing you do not in userland will need a new backup if you so much as sneeze. If it's a new system, the backup is useless (for the most part). If it's the same system, this is exactly what disk mirroring with RAID was created for. No reason to reinvent the wheel. That being said, tar was made for this sorta thing. Just don't go backing up /dev and /proc. You can backup /tmp, but it's pointless. But, you'd be much better of just creating a post-install shell script to recover from a crash with maybe a /etc tarball.

              Jeremy Falcon

              P L 3 Replies Last reply
              0
              • J Jeremy Falcon

                Member 14968771 wrote:

                I do not need to backup my data, but I like to have a backup of my OS.

                First question you have to ask yourself is why? If you're keen to be able to get your system going again after a crash, it can be done. But literally every last thing you do not in userland will need a new backup if you so much as sneeze. If it's a new system, the backup is useless (for the most part). If it's the same system, this is exactly what disk mirroring with RAID was created for. No reason to reinvent the wheel. That being said, tar was made for this sorta thing. Just don't go backing up /dev and /proc. You can backup /tmp, but it's pointless. But, you'd be much better of just creating a post-install shell script to recover from a crash with maybe a /etc tarball.

                Jeremy Falcon

                P Offline
                P Offline
                Peter_in_2780
                wrote on last edited by
                #8

                Installed a second NAS-class disk in my home server, replacing a motley assortment of consumer grade drives, one of which died recently. RAID resync is almost complete :-D Another useful tip: I set up a cron job to do a "dpkg -l" and a "snap list" to a user-space file, which is then included in my daily user backups. So if I need to rebuild or replace a machine, I don't have to remember all the packages I've downloaded over time. A quick file comparison tells me what I missed. (Meld is my weapon of choice, btw.) As well as user space all over, I also back up /etc and /var from the server.

                Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

                J 1 Reply Last reply
                0
                • P Peter_in_2780

                  Installed a second NAS-class disk in my home server, replacing a motley assortment of consumer grade drives, one of which died recently. RAID resync is almost complete :-D Another useful tip: I set up a cron job to do a "dpkg -l" and a "snap list" to a user-space file, which is then included in my daily user backups. So if I need to rebuild or replace a machine, I don't have to remember all the packages I've downloaded over time. A quick file comparison tells me what I missed. (Meld is my weapon of choice, btw.) As well as user space all over, I also back up /etc and /var from the server.

                  Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #9

                  Noice

                  Jeremy Falcon

                  1 Reply Last reply
                  0
                  • J Jeremy Falcon

                    Member 14968771 wrote:

                    I do not need to backup my data, but I like to have a backup of my OS.

                    First question you have to ask yourself is why? If you're keen to be able to get your system going again after a crash, it can be done. But literally every last thing you do not in userland will need a new backup if you so much as sneeze. If it's a new system, the backup is useless (for the most part). If it's the same system, this is exactly what disk mirroring with RAID was created for. No reason to reinvent the wheel. That being said, tar was made for this sorta thing. Just don't go backing up /dev and /proc. You can backup /tmp, but it's pointless. But, you'd be much better of just creating a post-install shell script to recover from a crash with maybe a /etc tarball.

                    Jeremy Falcon

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #10

                    It is pointless to start a discussion with "why would you want to do that ?" But since you did and I have nothing better to do with MY TIME I give you a recent "event ". My Ubuntu OS decided to quit "D_BUS message " installation... OS load went into infinite loop trying to install

                    "D_BUS message "

                    The only solution was to "pull the plug". I have been around the block few times and I know TECHNOLOGY FAILS. It took me almost two weeks to recover and NO , I do not stare on monitor screen 24/7. It is my hobby ONLY , the days of "gainful employment are gone " I am happily retired. Cheers PS I do not write scripts.

                    1 Reply Last reply
                    0
                    • J Jeremy Falcon

                      Member 14968771 wrote:

                      I do not need to backup my data, but I like to have a backup of my OS.

                      First question you have to ask yourself is why? If you're keen to be able to get your system going again after a crash, it can be done. But literally every last thing you do not in userland will need a new backup if you so much as sneeze. If it's a new system, the backup is useless (for the most part). If it's the same system, this is exactly what disk mirroring with RAID was created for. No reason to reinvent the wheel. That being said, tar was made for this sorta thing. Just don't go backing up /dev and /proc. You can backup /tmp, but it's pointless. But, you'd be much better of just creating a post-install shell script to recover from a crash with maybe a /etc tarball.

                      Jeremy Falcon

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #11

                      OK, when OS residing in RAID fails - does RAID copies the failed code into ALL partitions ? How would that be of ANY help ?

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups