Results 1 to 6 of 6
  1. #1
    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.

  2. #2
    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.

  3. #3
    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?

  4. #4
    Join Date
    Oct 2002
    Location
    /roof/ledge
    Posts
    28,074
    Copy them to /home and try it again.
    Your one stop shop for decentralization

  5. #5
    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

  6. #6
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Mount the old hd, rsync old datas, my.cnf. httpd.cnf

Similar Threads

  1. cPanel Copy account failed, twice - How to copy the other files manualy ?
    By ovisopa in forum Hosting Security and Technology
    Replies: 12
    Last Post: 01-27-2010, 02:54 PM
  2. Copy an account from another server via WHM - Cannot copy mysql database. ?
    By san-deep in forum Hosting Security and Technology
    Replies: 3
    Last Post: 10-09-2008, 04:56 AM
  3. How to copy an object variable (Copy. not reference)
    By grabmail in forum Programming Discussion
    Replies: 3
    Last Post: 04-28-2006, 12:14 PM
  4. Disc Cataloger
    By Tux-e-do in forum Web Hosting Lounge
    Replies: 0
    Last Post: 08-03-2002, 11:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •