LinuxQuestions.org
Help answer threads with 0 replies.
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 02-09-2012, 10:48 AM   #1
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 262

Rep: Reputation: 5
advice on complete system backup


Hello,

Im running gentoo and have it just the way I want it.

The problem is that I do play around with it quite a bit and have broken it a few times.

Can anyone give me some advice on how to make a complete system backup. What I mean is to put it on an external drive and then when I want it back to this state I can just move it back.

Could I actually just tar it and copy it over or will that not work?

Thank you
 
Old 02-09-2012, 10:57 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Clonezilla
 
1 members found this post helpful.
Old 02-09-2012, 04:52 PM   #3
skola
Member
 
Registered: Nov 2009
Posts: 66

Rep: Reputation: 19
Adol,

One thing to assume is you can boot from dvd/cd or usb flashdrive. There are a couple of Linux distros dedicated to system repair even though you could use an ordinary Live CD.

SystemRescue http://www.sysresccd.org/ PartedMagic http://www.partedmagic.com/

aside from CloneZilla as already mentioned, they have other useful tools particularly PM.

Your external disk would best have a Linux filesystem - ext2/ext3/ext4 - to allow for large files, though NTFS read/write is reliable these days, but forget FAT32 or FAT.

Once booted from the CD it's a matter of following the prompts for the backup/restore util though of course check documentation.

Another point is if you have a way of doing a practise backup/restore, preferably another system or change over the main hard disk perhaps. It's better to know your procedure can work!

Not wanting to muddy things, you could use 'tar'. If no damage to the partition scheme then just booting from the PM CD opening a terminal, mount your main and external disks, make some suitable directories to aid seeing when and what is backed up, run a filesystem check and then tar up the chosen partitions/directories. Check out using tar if you haven't done so already.

This can be a quick way if you do something that involves just a few sub-directories so not needing the whole routine of CZ or the like which would do whole partition backups.

It happens I use a full partition backup tool for the partition information and then use 'tar' for regular backups. If any probs I just boot to the CD and delete all the directories on whatever partition, run a check and then restore the previous tar files.
 
1 members found this post helpful.
Old 02-09-2012, 07:22 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Clonezilla here too but backup should be stored on another drive.
Clonezilla-live-cd
http://clonezilla.org/clonezilla-live.php
You can backup either the entire system or individual partitions.

Last edited by EDDY1; 02-09-2012 at 07:23 PM.
 
1 members found this post helpful.
Old 02-14-2012, 02:48 AM   #5
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 262

Original Poster
Rep: Reputation: 5
Thank you everyone for your suggestions.

I tried to use clonezilla but I alway get an error at different points. It tells me that the disk may be full but I know its not.

I decided to use tar and bz2 to backup the complete base system.

What I did was
Code:
tar cvfj /external/gentoobackup.tar.bz2 /gentoobackup/gentoo/*.*
This was done using the gentoo boot cd.

I have the bz2 file on an external drive and will try to check it with kvm later this week.

Is there any reason why this shouldnt work. It seems like its pretty strait forward to me.

Thank you.
 
  


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
[SOLVED] Complete System Backup ssvirdi Ubuntu 7 04-13-2009 12:47 PM
complete system backup Completely Clueless Linux - Software 7 04-03-2008 07:35 AM
Complete system backup Schreiberling Linux - General 16 09-03-2006 08:06 AM
Complete System Backup? surrealdumbo Linux - Software 6 05-28-2004 11:14 AM
Complete System Backup top111 Linux - Newbie 1 08-20-2001 07:31 AM


All times are GMT -5. The time now is 11:44 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