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!

SOLVED Restore legacy backup with new backup system

Discussion in 'Data Protection' started by carock, Jun 11, 2018.

Tags:
  1. carock

    carock Well-Known Member

    Joined:
    Sep 25, 2002
    Messages:
    259
    Likes Received:
    7
    Trophy Points:
    168
    Location:
    St. Charles, MO
    Is there a way to restore the old backup system backups with the new backup system?

    I've migrated old accounts from cPanel server running the old backup system. I missed one and the server is no longer around.

    Is there a way to restore one of those old backups on the new server?

    Thanks,
    Chuck
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    720
    Likes Received:
    123
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Chuck,

    Just use SSH to do the restore

    Code:
    /scripts/restorepkg /location/to/the/backup.tar.gz
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. carock

    carock Well-Known Member

    Joined:
    Sep 25, 2002
    Messages:
    259
    Likes Received:
    7
    Trophy Points:
    168
    Location:
    St. Charles, MO
    The backups are just directories, not zip files.

    Can I just tar.gz the directory?

    /storage/cpanel2/cpbackup/daily
    # ls
    ./ carri/ schauc/ graph/ monog/ schick/ stlm/
    ../ chucktem/ files/ graphi/ pettail/ shpark/ stlou/

    Inside those directories are the files and directories for the account.

    ./ cp/ homedir_paths mma/ proftpdpasswd sds2 suspended/ vf/
    ../ cron/ httpfiles/ mms/ psql/ shadow suspendinfo/
    addons digestshadow ips/ mysql/ quota shell userconfig/
    bandwidth/ dnszones/ locale/ mysql-timestamps/ resellerconfig/ ssl/ userdata/
    bandwidth_db/ domainkeys/ logs/ mysql.sql resellerfeatures/ sslcerts/ va/
    bandwidth_db.json has_sslstorage meta/ nobodyfiles resellerpackages/ ssldomain vad/
    counters/ homedir/ mm/ pds sds sslkeys/ version

    Chuck
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @carock,

    Yes, you should be able to archive the directory into a .tar.gz file and then restore it using the command referenced in the earlier response.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    720
    Likes Received:
    123
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    You shouldn't even need to tarball them, as long as the directory structure is the same you can just restore the path to the account like

    Code:
    /scripts/restorepkg /storage/cpanel2/cpbackup/daily/schauc
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  6. carock

    carock Well-Known Member

    Joined:
    Sep 25, 2002
    Messages:
    259
    Likes Received:
    7
    Trophy Points:
    168
    Location:
    St. Charles, MO
    Everything worked, thank you everyone for your help.

    Chuck
     
    cPanelMichael likes this.
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Chuck,

    I'm glad to see it worked well. I've marked this thread as solved.

    Thanks!
     
    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