Want to write script to back-up up Linux hdb drive to hdc drice

Reply

Join Date: Oct 2006
Posts: 10
Reputation: rfw is an unknown quantity at this point 
Solved Threads: 0
rfw rfw is offline Offline
Newbie Poster

Want to write script to back-up up Linux hdb drive to hdc drice

 
0
  #1
Oct 27th, 2006
Hello againThe networking forum helped me solve my "I can't to connect to the ethernet problem".
Now, I want to back-up my hdb drive to my hdc drive. Hdb is 120 GB IDE, HDC is 160 SATA, I need to buy or write my own shell script to do the work.
I found an article "Easy Automated Sanp-shot Backups with Rsync" by Rob Flickenger. But it is so long I get confused.
Do I need to format the SAT drive? I rember from my Lucent SA days using volcopy. But, I guess things have changed. I have a CMS tool and drive to back-up my Windows drive. The tool did a full back-up once and has been doing incremental back-ups daily since then.
Iguess that is what I want. But being new/green, I will take your advice.:p
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Want to write script to back-up up Linux hdb drive to hdc drice

 
1
  #2
Oct 27th, 2006
Originally Posted by rfw
Do I need to format the SATA drive?
First thing you need to do when preparing a new hard drive is to partition it. I prefer cfdisk, which is slightly more user-friendly than regular fdisk. So, on the command line, you would do something like:
cfdisk /dev/sda where /dev/sda is your SATA hard drive.

You'll then probably see free space, in which you have to make a partition. Use Tab or right- and left-arrow keys to navigate through the menu. Create a new partition of type "Linux" (type 84 I think...).

Once you've created a partition, you're ready to format it. First you need to choose a filesystem type (in this example I use ext3), and then you need to format the partition with the type you've chosen:
mke2fs -j /dev/sda1
Note that if you don't use -j, it will be non-journaled, otherwise known as ext2.

You can then mount the newly-formatted and partition drive by doing:
mount /dev/sda1 /mnt/somedirectory
optionally using -t to specify filesystem type if it's nonstandard.

You can then copy files. I won't go into that here, but if you need more help, just say so.

Hope this helped
"Technological progress is like an axe in the hands of a pathological criminal."
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 10
Reputation: rfw is an unknown quantity at this point 
Solved Threads: 0
rfw rfw is offline Offline
Newbie Poster

Re: Want to write script to back-up up Linux hdb drive to hdc drice

 
0
  #3
Oct 28th, 2006
Joe,

I will do what you say. The whole of my SATA will be my partition.
when I get that done, I want to copy all of my IDE drive to the SATA drive. Then I want to set-up incremantal back-ups. I guess I can use cron and rsync as Rob Flickenger suggests in is artical tiiled. "Easy Automated Sanpshot-Style Bacckups with Linux and Rsync" which I found through a Google search. :p

Originally Posted by joeprogrammer View Post
First thing you need to do when preparing a new hard drive is to partition it. I prefer cfdisk, which is slightly more user-friendly than regular fdisk. So, on the command line, you would do something like:
cfdisk /dev/sda where /dev/sda is your SATA hard drive.

You'll then probably see free space, in which you have to make a partition. Use Tab or right- and left-arrow keys to navigate through the menu. Create a new partition of type "Linux" (type 84 I think...).

Once you've created a partition, you're ready to format it. First you need to choose a filesystem type (in this example I use ext3), and then you need to format the partition with the type you've chosen:
mke2fs -j /dev/sda1
Note that if you don't use -j, it will be non-journaled, otherwise known as ext2.

You can then mount the newly-formatted and partition drive by doing:
mount /dev/sda1 /mnt/somedirectory
optionally using -t to specify filesystem type if it's nonstandard.

You can then copy files. I won't go into that here, but if you need more help, just say so.

Hope this helped
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Want to write script to back-up up Linux hdb drive to hdc drice

 
0
  #4
Oct 29th, 2006
Originally Posted by rfw
I can't find cfdisk. I did find out that Red Hat removed it from Linux. Do you know where I can get cfdisk?
I haven't been able to find reports anywhere of cfdisk being "removed" from the Red Hat distribution. My suspicion is that it's still on your hard drive, hiding.

First of all, make sure you're root. The default paths for root are different than for a regular user. Next, try running it from different directories, such as /usr/sbin/cfdisk /dev/sda. Still can't find it? Run a search through the entire drive:
find / -name cfdisk
(you may want to pipe it if the results are too long)
find / -name cfdisk | more

Now if this search turns up with nothing, then you'll have to install it. Probably the easiest way to do it is to download the cfdisk rpm, and using either the command line RPM tool or the GUI RPM (to run the GUI RPM tool, just double-click the .rpm file), install the package. It will be installed in /usr/sbin/cfdisk, so use that path when running cfdisk after installation.
"Technological progress is like an axe in the hands of a pathological criminal."
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 10
Reputation: rfw is an unknown quantity at this point 
Solved Threads: 0
rfw rfw is offline Offline
Newbie Poster

Re: Want to write script to back-up up Linux hdb drive to hdc drice

 
0
  #5
Oct 30th, 2006
[quote=rfw;269265]

I installed cfdisk and now I am being told that libtinfo.so.5 is missing. When I downloaded my CD's to ginstallLinux, I got the i386 verizon of Ferdora 5. Could this explain the missing libtinfo.so.5.? I mean is it i386 versus i586 or should I proceed with i586 and keep going until all missing files are on my main disk?
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Want to write script to back-up up Linux hdb drive to hdc drice

 
0
  #6
Oct 30th, 2006
[QUOTE=rfw;269818]
Originally Posted by rfw View Post

I installed cfdisk and now I am being told that libtinfo.so.5 is missing. When I downloaded my CD's to ginstallLinux, I got the i386 verizon of Ferdora 5.
OK, since you've got the i386 version, it's probably best to download the entire util-linux rpm package:
http://rpmfind.net/linux/RPM/freshme...9i-1.i386.html

If you still get the error message about libtinfo missing, then you'll need the ncurses rpm:
http://rpmfind.net//linux/RPM/fedora...0715.i386.html
"Technological progress is like an axe in the hands of a pathological criminal."
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 10
Reputation: rfw is an unknown quantity at this point 
Solved Threads: 0
rfw rfw is offline Offline
Newbie Poster

Re: Want to write script to back-up up Linux hdb drive to hdc drice

 
0
  #7
Oct 31st, 2006
Joe,
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 10
Reputation: rfw is an unknown quantity at this point 
Solved Threads: 0
rfw rfw is offline Offline
Newbie Poster

Re: Want to write script to back-up up Linux hdb drive to hdc drice

 
0
  #8
Oct 31st, 2006
Joe, I found files in /tmp. I can't figure out how to copy and paste them , so you can see them. I saw a file with name
cfdisk-2.11w-alt3.i588-1.rpm.

Are any of these /tmp file installation files? Can you tell me what to look for?
Maybe the file I need is sitting in/tmp. Is there anyway I can send you the ls -lt of /tmp?
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 133
Reputation: sn4rf3r is an unknown quantity at this point 
Solved Threads: 2
sn4rf3r's Avatar
sn4rf3r sn4rf3r is offline Offline
Junior Poster

Re: Want to write script to back-up up Linux hdb drive to hdc drice

 
0
  #9
Oct 31st, 2006
man cp
man rpm
cp /tmp/cfdisk-2.11w-alt3.i588-1.rpm ~
rpm -i ~/cfdisk-2.11w-alt3.i588-1.rpm
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the *nix Hardware Configuration Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC