Problem with Backup Restoration from AWS
Problem:
My VPS gets backed up to an AWS S3 bucket.
I need to restore a particular website from the last good backup (today's backup by chance).
However, WHM > Backup Restoration says:
"The system cannot restore backups because it does not store those backups locally."
Research:
After a good few Google searches I uncovered these links:
Actions Taken:
- Downloaded the appropriate tar.gz from AWS S3.
- Checked the BACKUPDIR variable within the /var/cpanel/backups/config file
- Config file says my backup directory is BACKUPDIR: /backup
- Created a new folder under /backup i.e. /backup/2019-05-15
- Uploaded today's backup i.e. the 2019-05-15.tar.gz to my server to the new folder.
- Refreshed the WHM > Backup Restoration page and nothing changes.
- Altered my Backup Configuration to "Retain Backups in the Default Backup Directory".
- Refresh the WHM > Backup Restoration page
- The yellow warning sign has gone.
- And now I can restore really old backups from a few years ago, must be from before I swapped over to AWS S3. But I can't see the backup that I just uploaded today.
- Today's date seems to have changed to bold, but I can't select it (See Thumbnail)
-
Just stick the gz file in /home and use the restore full backup/remove file in whm. Then choose the user name and restore it. 0 -
@GOT Thanks for replying. - I moved the tar.gz to /home
- Went into Restore a Full Backup/cpmove file
0 -
Is the account terminated? If the account exists then you need to check that box about overwriting the existing user. If the account is terminated than as it sits is fine. 0 -
@ GOT No, it's not terminated. The Web Developer made a hash of things. OK, your instructions worked perfectly. Hooray! Thank you very much for your help, it's really appreciated. Thanks. 0 -
Happy to help, glad it worked out! 0 -
Hello @LordLiverpool, I'm glad to see the suggested method worked. Here's a copy of my recent response to the thread you linked in your first post: [QUOTE] 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 theBackup 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:0 -
@cPanelMichael Thanks very much for your help, it's appreciated. I'll upgrade to Version 80 asap, it's great to know this feature has been developed. Kind Regards 0
Please sign in to leave a comment.
Comments
7 comments