SOLVED Restore legacy backup with new backup system

carock

Well-Known Member
Sep 25, 2002
266
9
168
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
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
806
156
168
New Jersey
cPanel Access Level
DataCenter Provider
Chuck,

Just use SSH to do the restore

Code:
/scripts/restorepkg /location/to/the/backup.tar.gz
 

carock

Well-Known Member
Sep 25, 2002
266
9
168
St. Charles, MO
Chuck,

Just use SSH to do the restore

Code:
/scripts/restorepkg /location/to/the/backup.tar.gz
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
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.
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
806
156
168
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
 
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello Chuck,

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

Thanks!