LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-03-2008, 01:52 PM   #1
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Rep: Reputation: 15
Question 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
 
Old 03-04-2008, 11:43 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
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.
 
  


Reply

Tags
backup


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing Up /home carlosinfl Linux - General 3 02-16-2006 01:04 PM
Project questions -> old pc as a gateway/proxy server for home thegeekster Linux - Networking 13 07-28-2004 09:51 AM
Backing up solaris files on linux server phahn Linux - Newbie 5 10-05-2003 08:09 AM
Linux Home Gateway Problem Snabber Linux - Networking 8 07-28-2003 12:11 AM
Backing up Linux to a remote server! DigiCrime Linux - General 5 12-10-2002 04:41 AM


All times are GMT -5. The time now is 11:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration