LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-24-2009, 04:32 AM   #1
gsnravi
LQ Newbie
 
Registered: Feb 2009
Location: hyderabad
Posts: 5

Rep: Reputation: 0
how to copy data from system to external hdd


Hi,

I have RHEL 4. I would like to format existing os and load to freshly. I have some of below queries :
Pl. give me detailed answers with commands.

1. how to mount external usb drive.
2. how can I take backup to external usb drive.
3. which folders and files requried to take backup

Pl.give me answers.
Thnx in advance.
 
Old 02-24-2009, 04:58 AM   #2
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 32
Quote:
Originally Posted by gsnravi View Post
Hi,

I have RHEL 4. I would like to format existing os and load to freshly. I have some of below queries :
Pl. give me detailed answers with commands.

1. how to mount external usb drive.
2. how can I take backup to external usb drive.
3. which folders and files requried to take backup

Pl.give me answers.
Thnx in advance.
It is unethical to dictate volunteers to give you the answer you want. I think you must learn the basics first. Google is your friend.
 
Old 02-24-2009, 05:12 AM   #3
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
These answers are neither exhaustive, nor the only possible solution. I suggest you boot from a live CD. For all tools see the man page or Google for better samples.

1. mount -t <your-filesystem-type> /dev/<your-device> <your-mount-directory>
2. dd if=<device-to-backup> of=<path-where-to-backup>
3. backup what you need restored - if in doubt, then backup everything (as in 2. with dd)

linux

Last edited by gergely89; 02-27-2009 at 10:58 PM.
 
Old 02-24-2009, 05:17 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There are many posts here that give instructions on mounting an external drive. (Search on this site for "mount uid gid fmask" and read the mount manpage) For backups, I'd recommend formatting the external drive with a native linux filesystem. The fat32 filesystem has a file size limit and doesn't retain permissions. Don't forget that whatever you uses needs to backup all file attributes including ACLs and the Security context. So use something supplied by your distro (RHEL) so you are certain it is built with the correct options. If you use LVM, look at using LVM mirror dumps. If you run a MSQL server, there is a package written to perform LVM snapshots to backup up a MSQL tables partition.

On way perform backups is to use rsync. This will replicate files to another computer or a directory. Another way is to use tar or dar to perform backups. If you use tar, be sure to read the section on Incremental Dumps in Section 5.2 of the tar info manual. This option lets you create a timestamp file and perform incremental backups after an initial full backup.

Don't backup the /tmp, /proc, /sys or /dev directories. The first doesn't need to be backed up. The latter are pseudo filesystem, or created at boot time.

Don't backup the /mnt or /media directory. They are for mounting other filesystems & shares. However if you mount a fixed directory that you use on /mnt, in that case it would be OK. The /mnt/ directory would be where you are mounting the destination filesystem so you don't want to back it up. Look at what you mount on /mnt and make a case by case decision.

A program for KDE that I used to use was kdar. It was a graphical front end for the dar program. Dar is a disk archiver, and archives to slices, which you can later burn to CD or DVD if you wanted. The kdar program may not be supported anymore, but you can export the "full backup", "incremental backup" and "restore" jobs to a bash script. That would allow you to use the script in a cron job.

Last edited by jschiwal; 02-24-2009 at 05:23 AM.
 
Old 02-28-2009, 03:23 AM   #5
gsnravi
LQ Newbie
 
Registered: Feb 2009
Location: hyderabad
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Thank you for ur suggestions and answers,

I run fsck command on / after getting ctrl+d option. but after completion of fsck there is more than 4.5gb last+found directory created on root. the root almost all full.

1. how can i remove the last+found directory or it is required for further steps.
2. is there any steps after completion of fsck.

Pl.give me ur speedy reply bcz its urgnt.
 
  


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
Recommend CLI software for copying data from dying external HDD? peter3731 Linux - Software 3 09-27-2008 11:42 AM
I/O error while copying some data on to external HDD gary4gar Linux - Hardware 2 10-31-2007 03:50 AM
Anyone know of a readily available hdd to hdd copy utility? lumix Linux - Software 1 03-29-2007 11:57 AM
How to back up data onto a external HDD in RHL ?? sudhir Linux - General 8 09-26-2003 05:46 AM
system freezes when formatting external hdd hobylinux Linux - Hardware 6 09-10-2003 10:23 AM

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

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