Version 80 - Restore backups from a remote destination via FTP transport in WHM

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello @grabyourhosting,

The ability to restore a cPanel account backup from a remote destination is limited to the FTP destination type in version 80. Support for additional remote destination types may come in future versions, but there's no specific time frame to offer on the SFTP destination type at this time. I encourage you to vote for and follow the feature request below to receive updates on the implementation of additional destination types:

Restore from remote backups

Thank you.
 

HostXNow_Chris

Well-Known Member
PartnerNOC
Jan 22, 2016
91
47
68
United Kingdom
cPanel Access Level
DataCenter Provider
Twitter
There was a feature request for this at Restore from remote backups

But how to use it?

80 Release Notes - Version 80 Documentation - cPanel Documentation

Restore backups from a remote destination via FTP transport in WHM
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).

I set up Remote FTP and sent backup to remote server which completed fine, but at

Home » Backup » Backup Restoration

It still shows "The system cannot restore backups because it does not store those backups locally".

Of course, can use JetBackup and I do for servers that whole a lot of cPanel accounts, but for a VPS with just 1 or two cPanel accounts JetBackup can be overkill especially when the file size of the data is so small.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello @HostXNow_Chris,

There was a feature request for this at Restore from remote backups
It looks like the Restore From Remote Backups feature request was closed based on the inclusion of this feature in cPanel & WHM version 80. Since support for this feature is limited to the FTP remote destination type, I recommend opening a separate feature request for the specific remote destination type you'd like to see this feature expanded with (e.g. SFTP). Let me know the feature request URL once it's opened and I'll ensure to encourage others to vote for it whenever the topic is mentioned.

It still shows "The system cannot restore backups because it does not store those backups locally".
You can still perform this task, however we recommend using the command line to do this since the command line is the most common method used to manually transfer the backup archives to the server. You'd follow the steps listed under "Step 6" on the document linked below instead of using WHM >> Backup Restoration:

Full Disaster Recovery - cPanel Knowledge Base - cPanel Documentation

Here are the commands you can use if you need to restore backups for all accounts:

Code:
cd BACKUPDIRECTORY/TYPE/DATE/accounts/
for archive in `ls`; do /scripts/restorepkg $archive; done
Note you can still use WHM >> Backup Restoration if you prefer, however to use this feature you must first enable the Retain Backups in the Default Backup Directory setting in WHM's Backup Configuration (WHM >> Home >> Backup >> Backup Configuration) interface. Then, once you've moved the backups to the correct location and restored them, open WHM >> Backup Configuration, adjust the Retain Backups in the Default Backup Directory setting to it's previous state, and then remove the backup archives from the location you moved them to.

Thank you.