How to backup Linux OS?
-
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.
-
If I lose the OS then I just re-install from the base image. However take a look at linux backup - Google Search[^].
-
Going back/ reinstall the original ISO package is not practical when other packages are installed.
-
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.
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
-
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
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
-
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
Noice
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
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.
-
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