SOLVED Backup Restoration requires local backup rentention

jmartinmds

Member
Jul 22, 2016
15
3
53
Maryland
cPanel Access Level
DataCenter Provider
I've got several servers running v76 and I'm getting the same warning on all the servers in the Backup Restoration area: The system cannot restore backups because it does not store those backups locally.

We have our servers configured to send our backups to S3 but we don't retain a copy of them on the local servers. In the past I've been able to download the backup tarball to the correct directory and then it would populate in Backup Restoration. So for example, I would go to S3 and find the file, go to the server and upload that file to /backups/2018-11-30/accounts and then be able to restore that account to that date. I found a workaround whereby if I enabled the option to Retain Backups in the Default Backup Directory the restoration module would find the files again, but if I (or someone else) were to forget to uncheck that after restoring, we'd potentially end up with backup files filling our local storage.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hello @jmartinmds,

I've opened internal case CPANEL-24264 to report that it's no longer possible to use "WHM >> Backup Restoration" after moving the backups to the local server using the instructions on Remote Restoration - Version 76 Documentation - cPanel Documentation unless local backups are enabled or "Retain Backups in the Default Backup Directory" is enabled. I'll monitor this case and update this thread with more information as it becomes available.

Thank you.
 
  • Like
Reactions: Kent Brockman

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,289
65
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hey guys, hope you are doing well.

I just wanted to bring to your attention a bug in the Backup Restoration screen happenning since v76 was released: if you manually copy a backup file to the local server (to /backup folder, for instance) in order to restore it, it won't actually show its name until you temporarily check the following option in Backup Configuration: "Retain Backups in the Default Backup Directory".

That's a bug because if you are retaining backups or not, it shouldn't pose a problem to restore an account, specially if the backup file is locally present. In fact, that worked well in v74 and older.

Do you have any internal case for this?
Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hi @Kent Brockman,

I merged your thread into this one. I'll continue to monitor internal case CPANEL-24264 and update this thread with more information as it becomes available.

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hello,

As of cPanel & WHM version 80, it's possible to restore a cPanel account backup directly from a remote destination with the FTP transport type. Here's the quote from the Version 80 Release Notes:

In cPanel & WHM version 80, we added the ability to restore a cPanel account backup from a remote destination via FTP transport. You can restore these backups through WHM's Backup Restoration interface (WHM >> Home >> Backups >> Backup Restoration).
For the other backup destination types, you must manually transfer the backup files from the remote location to your server if you have disabled the Retain Backups in the Default Backup Directory setting. Once you do this, you can restore a remote backup through the Restore a Full Backup cpmove File interface. This is documented at:

Remote Restoration - cPanel Knowledge Base - cPanel Documentation

Thank you.
 
  • Like
Reactions: Kent Brockman