LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-23-2003, 09:52 PM   #1
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
best backup method


Just a quick opinion question before I put all of my data at risk.

I am going to be mounting /home on a new partition to help free up some much needed space. I have about 4.5 GB in my users home dir, and I want to keep it intact (duh). So I am thinking backup/mount/restore. Simple enough. I have never had to do a backup of this size on Linux before (I am still a relative ) and I was wonder what method is best. I was going to just .tar the whole directory, and then restore it, but I'm not sure if this is the most efficient way to go. In searching the forums I have also found mention of using dd to do a backup, but other than forcing images onto floppies I have never used dd for anything.

Any advice? Any other back-up methods that I have left out?

slight
 
Old 06-23-2003, 11:25 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
First you need something to put the backups on. Do you have a cd recorder or a spare hard drive or something? On my system I have two hard drives and I keep them synchronized with mirrordir. I also back up the most important stuff with my cd recorder.

Last edited by zmedico; 06-23-2003 at 11:27 PM.
 
Old 06-24-2003, 12:50 PM   #3
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Original Poster
Rep: Reputation: 30
I have a 2nd machine that I can store the backup on, so that is not a problem. I also have a burner, but if possible I would like the backup to be one file, and it would end up being larger than one CD. I can always multi-session the CD, but that just seems like a waste of time. Doing the actual backup is not the problem, I'm just curious wich method is easier/best. I don't want to spend 2 hours doing a back-up only to find out there was a way that would have done it in 15 min.

slight
 
Old 06-24-2003, 01:05 PM   #4
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
The absolute easiest way to do backups is with a spare hard drive because it's fast and you can fit the entire backup on one disk. If that hard drive is in a second machine then nfs or smbfs might be helpful (fast ethernet too). Mirrordir allows you to sychronize your original and backup very easily.
 
Old 06-24-2003, 01:49 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,151

Rep: Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980
new home

Other options:
Install the new drive, partition, format, as desired. Mount as /mnt/data or whatever. If you have enough space create an additional backup partition.

Copy your /user(s) directory to the new drive. I would think cp would do. Check man pages for options on recursing data. If you have midnight commander it works good for copying directories. Copy data to backup partition if you want.

Once data is copied and verified, login as root, delete user directories in /home and then mount the new drive to /home. Add entry in fstab for your new /home.
 
Old 06-24-2003, 09:03 PM   #6
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
harddrive aren't very expensive... ge tone (or just find an old crappy 6gig in your closet, like all computer fan), buy a small star tech removaqble case (star tech sucks, but it's cheap) so you'll be able to add/remove your backup hd .
 
Old 06-24-2003, 09:25 PM   #7
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Original Poster
Rep: Reputation: 30
OK, maybe my question has been lost. I know how to back up data. I already have the space set aside to store the backup copy. That is not my question. I was asking if there were any preferred tools or methods that the average wouldn't know about. The only person that has mentioned a method is michaelk, who suggested using cp recursively to copy everything to the new directory. Where I am going to be backing up almost 9 gigs of data and storing them on a remote system, using cp would seem to be very slow and cumbersome, especially over SMB (my 2nd machine is a win2k server that I use for alot of my classroom stuff). I was thinking originally of just .tarring my whole home dir, and then FTP'ing that to my server box, but even this seemed a bit cumbersome.

Oh well, I'll probably end up doing it as a .tar anyway, but thanks for the suggestions.

slight
 
Old 06-24-2003, 09:40 PM   #8
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
You can tar.bz2 it or tar.gz (directly onto an nfs or smbfs share if you don't have space on the local machine or don't want to copy the backup). That compression might help if your ethernet is slow.

Last edited by zmedico; 06-24-2003 at 09:42 PM.
 
Old 06-26-2003, 06:03 AM   #9
sepski
LQ Newbie
 
Registered: Jun 2003
Location: norway
Distribution: rh 6.x, rh7.x, rh8, rh9, leaf, mandrake 9.1
Posts: 4

Rep: Reputation: 0
tar czf - /home | ssh 192.168.1.10 -l [username] 'cat > /mnt/backup/home.tar.gz'

this will make a home.tar.gz backup file on a remote computer (192.168.1.10) on the remote computers directory (/mnt/backup/) and using the username spesified. you will be asked for password
 
Old 06-26-2003, 04:23 PM   #10
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 767

Rep: Reputation: 60
I have used partimage with great success. It takes a bit of groundwork but has never let me down. I made a boot cd and use it regularly. I think the homepage is www.partimage.org.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
good backup method msound Linux - General 2 10-07-2005 12:58 PM
What is your backup method? ChillyWillie Mandriva 4 07-26-2005 03:20 PM
Hard drive dying, good backup method cadj Linux - Software 3 12-14-2004 08:28 PM
Ghost-like method for system backup? Azmeen Slackware 26 08-26-2004 07:24 PM
using tar as a backup method tarax Linux - Newbie 3 06-22-2004 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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