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!

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:
    110
    Likes Received:
    1
    Trophy Points:
    18
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. musti19

    musti19 Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    110
    Likes Received:
    1
    Trophy Points:
    18
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #5 lloyd_tennison, Jun 2, 2014
    Last edited: Jun 2, 2014
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    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