LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2005, 02:53 PM   #1
carmat06
LQ Newbie
 
Registered: Sep 2005
Distribution: Debian Sarge
Posts: 8

Rep: Reputation: 0
Info on how to back up my new debian sarge stable system


Hi all,

So, I've finally got a working debian stable sarge system up and running. This was my first time using linux, so far I am quite impressed, for some reason I was under the impression that linux would be MUCH different than I am used to. Anyway, now that I have everything setup what I want to know is can I create a backup so that when I start playing with the system (upgrading the kernel, etc) and I inevitably break things because I don't know what I'm doing yet, I can fall back to my current setup with out reinstalling from the debian Cd's. What I'm finding is the hardest thing is that things which I figured out how to do in windows years ago I don't know how to do in debian, for example it took me forever to set a static IP for port forwarding and to configure the samba to see the shared files on my winxp machine. It is fun though, doing a lot of learning. If you guys can help me out with this backup thing I'm sure it will save me tons of time.

Thanks!

Matt
 
Old 09-26-2005, 03:06 PM   #2
free_ouyo
Member
 
Registered: Mar 2004
Location: Belgium
Distribution: Ubuntu
Posts: 133

Rep: Reputation: 15
Info on how to back up my new debian sarge stable system

Hello,

For a full backup of the system, I suggest :
- boot with a live cd live knoppix
- have a HD with free space and with ext3 filesystem
- backup the MBR of the master drive using 'sfdisk'
% sfdisk -d /dev/hda > hda.out (this save the hda MBR)
% sfdisk /dev/hda < hda.out (this replace the hda MBR if you need to restore the partition table)
- mount the partition and create a tar archive of the mounted partitions
exemple with 2 partitions ext3 (dev/hda1 and /dev/hda2) and 1 swap (/dev/hda3)
- no need to backup the swap partition
- mount -r /dev/hda1 /mnt/hda1
- cd /my_backup_place
- tar cvfzps hda1_backup.tar.gz /mnt/hda1
- mount -r /dev/hda1 /mnt/hda2
- tar cvfzps hda2_backup.tar.gz /mnt/hda2

That's the way I work, it's not always the easiest but it's the way I do.
--
free_ouyo
 
  


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 update webmin by debian sarge stable ? cccc Debian 2 10-14-2005 04:31 PM
Benifets of Upgrading from FC4 to Debian Sarge Stable BuckRogers01 Debian 8 08-12-2005 03:34 AM
cannot install unrar on Debian Sarge Stable cccc Debian 2 06-18-2005 03:06 PM
[Debian] Stable: Woody or Sarge? e11 Linux - Newbie 1 10-20-2004 02:06 AM
Persistent installation failures (Debian Stable, Sarge, Sid) massai Debian 10 02-08-2004 04:06 AM


All times are GMT -5. The time now is 01:38 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration