Results 1 to 6 of 6
-
03-01-2012, 01:52 PM #1WHT Addict
- Join Date
- Mar 2006
- Posts
- 151
copy backups from old problemtic disc to a new one
dear sirs... my datacenter will change my old problematic disc with a new disc and fresh install. then will plug the problematic disc as a slave in the server... in the old problematic drive i have the backups. can you guide wich commands i must type via ssh to copy from the old hard disc to new hard disc the file. i want all the files to be coopied to the new drive in folder backup, so i can restore them via WHM.
-
03-01-2012, 05:08 PM #2Web Hosting Master
- Join Date
- Feb 2012
- Location
- Apache Junction, AZ
- Posts
- 627
kteo,
Before you can move your content from the old drive to the new you will have to mount the old drive so you can see the content. The following commands should allow you to mount your drive and must be run via SSH as the root user:
First enter the /dev directory:
cd /dev
You can use the df command to show the drives that are already mounted to your server. You can use the ls command to check the contents of various options until you find the content. For example if you use ls sdb3 and see your old content you would then know that sdb3 is what you need to mount. Once you have determined the nomenclature of your drive you can use the following commands to mount the drive:
mkdir /mnt/olddrive
mount /dev/sdb3 /mnt/olddrive
Notes: There is a space between /dev/sdb3 and /mnt/olddrive. Replace sdb3 with the name of the drive you located previously.
Once the drive is mounted you will just copy the content from /mtn/olddrive to the location on the new drive that you wish it to be located at.
-
03-01-2012, 06:06 PM #3WHT Addict
- Join Date
- Mar 2006
- Posts
- 151
thank you mike for you answer. i transferred all the backupfiles from the old disc to folder /backup/cpbackup , but when i go via WHM to restore them, it says that there are no backups located at /backup/cpbackup. what the problem is. do you know?
-
03-01-2012, 06:55 PM #4
Copy them to /home and try it again.
Your one stop shop for decentralization
-
03-01-2012, 07:45 PM #5Web Hosting Master
- Join Date
- Feb 2012
- Location
- Apache Junction, AZ
- Posts
- 627
kteo,
In WHM when you go to restore a backup via Backup >> Restore a Full Backup/cpmove file it advises that you need to have the file uploaded to one of these directories on the server: /home, /home2, /home3, /root, /usr, /usr/home, /web. /backup/cpbackup is not listed. Have you tried to place the backup files in one of the listed directories and try to restore from there?Mike
-
03-01-2012, 08:48 PM #6Web Hosting Master
- Join Date
- May 2011
- Location
- New York, USA
- Posts
- 4,019
Mount the old hd, rsync old datas, my.cnf. httpd.cnf
Similar Threads
-
cPanel Copy account failed, twice - How to copy the other files manualy ?
By ovisopa in forum Hosting Security and TechnologyReplies: 12Last Post: 01-27-2010, 02:54 PM -
Copy an account from another server via WHM - Cannot copy mysql database. ?
By san-deep in forum Hosting Security and TechnologyReplies: 3Last Post: 10-09-2008, 04:56 AM -
How to copy an object variable (Copy. not reference)
By grabmail in forum Programming DiscussionReplies: 3Last Post: 04-28-2006, 12:14 PM -
Disc Cataloger
By Tux-e-do in forum Web Hosting LoungeReplies: 0Last Post: 08-03-2002, 11:43 AM