Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Restoring a full backup from command line

Discussion in 'General Discussion' started by apc1, Jun 11, 2005.

  1. apc1

    apc1 Well-Known Member

    Joined:
    Oct 18, 2004
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    166
    Hello,

    I need to restore a full backup from the command line because the WHM restore does not appear to work. If I select the account, which does appear in the backup list, it goes to a blank screen and does nothing.

    What is the command line for restoring a full backup please?

    Thank you very much.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You can use /scripts/restorepkg

    Note the following from that script, though:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Secret Agent

    Secret Agent Guest

    I tried this and got:

    /scripts/restorepkg global.tar.gz
    Searching /home....
    No Restorable archives found!
    Searching /usr/home....
    No Restorable archives found!
    Searching /web....
    No Restorable archives found!
    Searching /home2....
    No Restorable archives found!
    Searching /home3....
    No Restorable archives found!
    Searching /root....
    No Restorable archives found!
    Searching /usr....
    No Restorable archives found!
    <br><br><b>No archives where found!!</b><br><br>
    This feature will restore full backups, cpanel backups and cpanel move files in the format of:
    cpmove-user.tar.gz, user.tar.gz, backup-date_time_user.tar.gz<br><br>
    The files must be in one of these directories on the server:
    /home,/usr/home,/web,/hom
     
  4. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,051
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Earth
    Is the .tar.gz file is in the directories given in last line of your output ie. /home, /usr/home, /web. Copy the .tar.gz file you are trying to restore in one of those dir's using 'cp' command.

    Also is the backup file is in format like cpmove-user.tar.gz? If it is not, the restore will fail.

    Login to server and search the .tar.gz file.
    cp /source/path/for/cpmove-user.tar.gz /home
    /scripts/restorepkg cpmove-user.tar.gz
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice