The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

restore backups

Discussion in 'General Discussion' started by Secret Agent, May 27, 2005.

  1. Secret Agent

    Secret Agent Guest

    I just got an OS reload done and I have to restore from the secondary backup drive. I need to remount the second drive first. What is the proper way to do this?

    Is this right?

    fdisk /dev/sdb
    mkfs.ext3 -L /backup /dev/sdb1
    nano /etc/fstab
    LABEL=/backup /backup ext3 defaults 1 2
    mkdir /backup
    reboot

    I want to make sure I do not end up deleting the data off the secondary drive or mess with the partition.

    Please let me know.
     
  2. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    cross posted the same thing on ev1

    do NOT use fdisk!! Just mount the drive with the following, later if you want you can add it to fstab but is it not required to restore them.


    mkdir /backup
    mount /dev/sdb1 /backup
     
  3. Secret Agent

    Secret Agent Guest

    Thanks for your help!
     
  4. Secret Agent

    Secret Agent Guest

    How do I restore accounts via whm on the same hard drive?

    The backups are located at /backup on the same drive

    How can I restore this?

    I put in /backup/cpbackup and it didn't work in whm
     
  5. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    put them in /backup/cpbackup/daily and then when you go to restore backups in WHM there will be a daily box you can click.
     
Loading...

Share This Page