Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    123

    Default Restoring a full backup from command line

    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. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You can use /scripts/restorepkg

    Note the following from that script, though:
    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,/home2,/home3,/root,/usr<br><br><b>You must upload the file to one of the above locations before
    using this feature.</b>
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Secret Agent
    Guest

    Default

    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. #4
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    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

Similar Threads & Tags
Similar threads

  1. Reconfigure backup via command line
    By anzenketh in forum Data Protection
    Replies: 2
    Last Post: 08-24-2010, 09:46 PM
  2. Replies: 1
    Last Post: 01-29-2010, 09:04 AM
  3. Creating a Full Backup from the command line?
    By Kadence in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-02-2009, 04:41 PM
  4. Cpanel backup from command line
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 05-30-2007, 04:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube