LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Backing up home Gateway Linux server (https://www.linuxquestions.org/questions/linux-general-1/backing-up-home-gateway-linux-server-625418/)

Last Attacker 03-03-2008 12:52 PM

Backing up home Gateway Linux server
 
Hi there

I am wondering how one can backup a linux box incase something goes wrong, without having to reinstall and reconfiguring everything. This is for my OpenSuse(10.0) Linux Home Gateway. I can image it but then I might need a 80GB storage device since my Gateway has a 80GB HD.

I have imaged my client PC but I performed a Low-level format first before reinstalling and imaging my 160GB HD on a 4GB DVD (compression of 0's)

Any ideas?

Thanks

bigrigdriver 03-04-2008 10:43 AM

You don't need to backup an 80 gig partition; you only need to backup the files in that partition.

Method 1) make a tar archive of the partition, compress it with gzip or bzip2, and store it in another partition or on another drive. If reinstallation is necessary, install a minimal system, then restore the backup.

Drawback: tar makes a monolithic archive. If any part is corrupt, you risk loosing the entire archive.

Method 2) use dar to backup the files. Unlike tar, dar archives each file individually. If any part of the backup is corrupt, you only risk loosing the corrupt file. Dar has a skip-ahead feature. In some cases, that feature can skip-ahead over the corrupt portion of a file and continue the restoration. Hopefully, you have other means to restore the corrupt portion. If dar cannot restore a file, it gives an error message which file couldn't be restored. If it's a binary, at least you know which application has to be re-installed to regain functionality.

If reinstallation of the OS is necessary, install a minimal system, install dar, and restore your backup. If you have written backup and restore scripts for dar, it's easy to extract them from the backup in order to use them in the restoration.

Dar also includes a static version of dar which runs as a stand-alone application which can also be extracted and used to effect restoration.

Dar includes a good step-by-step tutorial which can be used to write your backup and restore scripts (bash shell scripts).

Drawback: it takes a while to practice with the tutorial and write your backup and restore scripts.

There are probably other equally useful backup applications. I've tried several, and finally settled on dar because it give me what I want.


All times are GMT -5. The time now is 06:46 PM.