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 from directory (created with increm. backup)

Discussion in 'Data Protection' started by musti19, May 18, 2014.

  1. musti19

    musti19 Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    hello,
    i configured whm to create incremental backups.
    now i want to transfer this backups to another server.
    Im using the pigz method, so i must extract the directory (because pigz dont support directorys)

    How can i do restore from a directory?

    In all examples are from tar.gz, but i need from directory(the incremental backups are also not compressed)

    thank you
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Does the destination server also use cPanel? If so, you can follow the instructions from this document:

    Remote Restoration

    Note that you should ensure incremental backups are enabled on the destination server so that it detects the directories instead of the archives. Or, you could package the directories into archives if you prefer.

    Thank you.
     
  3. musti19

    musti19 Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,
    because of server problems on my cpanel server, i want to reinstall the system with cpanel (again)
    And i want to restore the backup, that is transfered back to the new server (incremental backup[not tar.gz])
    As i know, cpanel can only restore from tar.gz files.

    But can the new server handle the incremental backup that is created from the old server, if i copy the backup on same directory?

    Actually the backups are:
    /backup/incremental/accounts
    and
    /backup/incremental/system
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, simply upload those backups to their original locations after reinstalling the OS/cPanel. cPanel can actually restore incremental backup directories as long as incremental backups are enabled in the backup configuration.

    Thank you.
     
  5. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    Is there a way to restore via command line? With a couple of hundred accounts, one at a time is not viable when migrating a server. I do the package first, to get most of the data, then the incremental at migration time.

    Also, the restorepkg seems to choke on .htaccess files, and will not restore a bunch. But, I do get an error so I know there was a problem.

    Thanks.
     
    #5 lloyd_tennison, Jun 2, 2014
    Last edited: Jun 2, 2014
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You will need to compress the incremental backup directories for the accounts into individual archives if you want to restore them via the command line using the /scripts/restorepkg utility.

    Thank you.
     
Loading...

Share This Page