LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-23-2003, 10:09 PM   #1
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Rep: Reputation: 15
How to back up data onto a external HDD in RHL ??


Hi,

I'm having a RHL OS, and I want to back up my data (my home directory may be) onto an new external HDD !!

But I am not sure how to do it... tried getting some info from some sites, but cud find none...

Could someone help me with this ??

tia

-- S
 
Old 09-24-2003, 01:29 AM   #2
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
What type is your external hdd. If you plug it in, and start the computer, does RHL recognise it. Does kudzu recognise the drive and mount it?

Why don't you search the RedHat site to see whether your drive is supported or not?
 
Old 09-24-2003, 09:15 PM   #3
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks Ultima.... Will check that n get back to you...

Thanks again.. cheers
 
Old 09-25-2003, 12:34 AM   #4
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Hi Ultima

Wat if I want to get a new external HDD and back up the data on my comp ?? Do U get wat I mean ???

As in... keep backing up at regular intervals (for eg everyday) ... Wat shud I do then ??

I saw somewhere on the web, that once I attach the HDD to my comp, I shud set up the frequency in fstab or something to back up my home directory at regular intervals... But I dun quite get wat it means...

Lemme make my question simple....

I have a RHL comp... I want to back up my home directory (where existing files are edited or new files created or old files are deleted), so that I dun lose ne data if my comp decides to take a walk...... I planned to get an external HDD (say, a 120 GB HDD) and do the back up.... Kindly help me with wat I shud do !!!

Thanks...
-- S
 
Old 09-25-2003, 02:08 AM   #5
linuxmanju
Member
 
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50

Rep: Reputation: 15
External HDD alright but what kind .is it a USB hdd ...?
make sure that its supported by ur distro... check that in redhat.com...
setting it up and
run...
cp -R -p ~/ ur-hdisk-mntpoint-directory

to automated backup u can use several tools ...
or simply u can put the above command in the crontab
 
Old 09-25-2003, 03:47 AM   #6
myunicom
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Rep: Reputation: 0
I am searching for how to back up data dynamically too. Now I using scripts and crontab to back up data every day. In my scripts I use the option -u in cp or tar command , it backup the newly created files only, but it can not delete the backup files while the corresponding files deleted in the original files, Any ideas?

My scripts:

1. mount the backup hard disk in a certain directory.
2. if mounting is successful(using if ... fi statement), using tar cvfu(data < 4G) or cp -au (data >4G) to backup data.
3. if backup operation is successful , umount the harddisk.

My crontab :

00 00 * * * scriptsname
(backup data at 00:00 ervery day)
 
Old 09-25-2003, 05:27 AM   #7
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
You can do that using just bash scripts, or you can do that using some scripting language like perl. I suggest that you consider learning perl, so that what you think will be done quite easily.

Also, sudhir , you can consider learning a little about automounts. I don't know if you will suit you, but you can set up your system such that the external hdd is automatically maounted on regular intervals, and data is then backed up, and finally the external hdd is umounted.

As for details about fstab, it is a startup file that is consulted by the kernel to check which partitions to mount at booting. It is in /etc/fstab and its format is easily understood. For ore info on fstab, you can just type man fstab or 'info fstab'. The format is the device first, the mount point next, the fs type next, and finally options about who can mount them and what permissions they have.
 
Old 09-25-2003, 10:21 PM   #8
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks a lot Ultima...

Now I get quite a bit about this... and I read thru the automount stuff on the web and also the fstab in my comp..... and I can understand a bit now....

Thanks to Manju too....

Will try to set it up in a coupla days (or may be in a week or two) and get back to u with the feedback about how it all went....

Thanks again...
 
Old 09-26-2003, 05:46 AM   #9
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
I am glad that I was of help to 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nuked HDD - Can I get the files back? Nige Linux - General 2 09-11-2005 10:43 PM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
Bootable partion on external HDD? 40 gb firelight hdd. Trebile34 Linux - Hardware 1 03-14-2005 11:50 AM
How can I copy VCD files to HDD in RHL 9 isaac_linux Linux - General 5 11-06-2003 12:24 PM
RHL 8 on *other* hdd and XP wont boot ashayh Linux - General 0 02-04-2003 02:11 AM

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

All times are GMT -5. The time now is 04:16 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
Open Source Consulting | Domain Registration