LinuxQuestions.org
Visit Jeremy's Blog.
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 08-23-2006, 10:07 AM   #1
Azalar
Member
 
Registered: Jan 2006
Distribution: Ubuntu
Posts: 42

Rep: Reputation: 15
newbie backup questions


One of the problems i (and others) often have with Linux is if i install something that breaks Linux or stops a device working i don't know how to resolve the problems.
This often leads to many posts on here for help.
As a result i decided the best approach to this is to start with a clean Linux install, then do a backup, and then get things working one by one backing up after i get a particular device or program working and so on. I know this will be slow going but i just want to gradually get everything working fine.
By doing this i hope when something breaks i can just do a restore and either start again or look for an alternative.
My dilemma here is how best to do the backups and how to restore from these when the need arises.
Im sure something simple like tar will be fine but have a few questions regarding tar and backup/restore.
What i would like to achieve is a way of getting Linux up and running "exactly" as it was before whatever changes i make.

Firstly what directories should i back up?
I'm not too bothered about backing up my files in /home with this method as i will have a seperate backup procedure for those.
When i restore using tar, will it overwrite the files properly or am i going to have lots of permissions errors?
Does tar restore over executables? What if those executables are currently in use? Won't it throw up errors if it tries overwriting these executables?
Should i be booting off external media to avoid this problem?
Thanks for any advice given

Paul
 
Old 08-23-2006, 01:27 PM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Hello,

The thing I do and it may be completely different then what others do although I have read similar posts. I create at least three or four partitions.
/
/usr
/home
/root

What directories you backup is entirely up to you, in my case I back up /usr and /home the most often.

I do exactly like you said. I use tar and cp to back up these partitions to another medium or drive. I do this weekly or whenever I make sweeping changes to something. If something goes wrong that is ireversable(which is very seldom, 1 time in the last year and a half on my slackware machine) I can resintall from scratch and copy back what I need like /home that contains all my settings etc. There is a great post on here that is about using the dd comman by AwesomeMachine, read through that, last time I checked I think it was 10+ pages inlength, although I have never done what the post contains it is a great read just to explore the possibilities within.

The greatest thing to do is create a script that does all this for you, alias the command to run the script and then you can type backupBox or whatever you aliased and then your backup is rolling.

Hope that helps some.

Last edited by lord-fu; 08-23-2006 at 01:30 PM.
 
Old 08-25-2006, 08:52 AM   #3
boToo
Member
 
Registered: Aug 2003
Distribution: Kubuntu
Posts: 49

Rep: Reputation: 15
Hi
there is ifno about dd command on this link http://wiki.linuxquestions.org/wiki/Dd . but i like something tar better , it would be faster. again, i guess if you image the drive , dd does exactly image the drive, so you might need bigger hard drive than source disk.
I also like to know there is imaging command in linux, like ghost?? faster and dont exactly need bigger hard disk. and doesnt have problems as many as ghost.
Also can someone point out how to tar bigger than 2G, please!!!!
Thanks
 
  


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
AIX/UX Backup Questions Doomhammer AIX 2 08-14-2006 10:36 AM
Newbie Backup Questions Doomhammer Other *NIX 1 08-03-2006 10:59 AM
newbie tar/tape backup questions mattl Fedora 3 04-24-2006 11:07 PM
backup questions it_slut Linux - Newbie 2 01-10-2005 05:52 AM
Backup questions. cottonmouth Linux - General 1 11-21-2002 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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