Restore from remote backups

DanH42 shared this idea 3 years ago
Open Discussion

I'd like to be able to store a week's worth of backups for all users, but space on the web server is limited and storing nearly 7x the data on the drive isn't really an option, so we store backups in Amazon S3 and don't keep them locally.

It would be nice if there were a way within WHM to automatically retrieve a remote backup archive, restore from it as needed, then remove the local copy when done. If WHM already has connection information to save backups to a remote destination, recalling those backups should be fairly simple. In my case I'm using S3, but this should be just as easy with FTP, WebDAV SFTP, etc.

In the meantime, I'm using a script to pull down the remote backup and put it back into its original folder so I can restore an account through WHM, but having to log in via SSH shouldn't be necessary.

Comments (12)

photo
1

The import export remote backup is a basic feature that should be available...

In the documentation, it is said we should download our backup to our computer and then send them back to the server on which we want applied backup. For me, it's impossible, my upload speed is too low, and my FTP disk is accessible only by the server for security. Maybe an alternative would be to offer an application like file manager that would work as an FTP client. So that we can manage at least a remote ftp from cpanel...

photo
1

I think same, this should be available for a while...... professional do backups on remote servers, not local

photo
1

This would be in one of the more important features I could hope for. I went to SFTP after being told via sales that the feature was already available. Having gone to an SSD cloud where IO is at a premium, having large storage for local backups is not a cost effective option, so I built a backup server with cost effective HDD giving me plenty of room for lots of backup retention, while dealing with an account restore is easy enough for me, I can SCP a file over, it is NOT easy for a majority of those I work with.

photo
1

Remote backup is a must, but we need to tool to restore both from remote ftp/sftp and from custom handler(we use it for openstack swift), It should be easy, cpanel has all the data, if feature is enabled, the cpanel user, can browse his remote backups, choose one and then download/restore it

This will greatly improve the self service features of the cpanel customer,

could be enabled by default from whm, by feature setting for reseller and cpanel accounts.

If will be possible to choose to restore only files in public_html/mail odr databases will be super nice.

photo
1

+1 to this. It would be silly not to add this feature. I have a 3TB NAS kept offsite which we use STTP to transfer backups to every night. It should be possible that cPanel keeps a record of the backups stored on that NAS unit then if someone requests a restore it downloads it to the server and begins the restore process.

The only other way I see this working is by mounting our NAS as a system drive. But I dont want to do that.

photo
2

Hi,

I think it is easier than that, cPanel can just do an ls -R on FTP/SFTP when neededn anche cache on a file, than the user can select the backups by date, choose if need to restyore onluy mail/only files/only dbs et voila'.

I think will be a great feature , with relatively siple work effort.

photo
1

I really like this feature. Another thing I would think of, in case the remote backups move from the location where cPanel uploaded them in the first place: also allow to input a remote URL to retrieve the backup file. This will also allow for nicer migrations since you could make a backup in an origin server an move the .tar.gz file to a public folder and then go to this UI and input that public URL, so your cPanel fetch the file, extract and restore that account.

This would be really really awesome for those scenarios where Transfer Tool simply cannot work to transfer in an individual cPanel account without having SSH root access.

I hope this can be seriously taken under consideration, please.

Best regards

photo
1

+1 for this idea.

Currently, you have to make the S3 backup tar.gz file public, then SSH into the server and head into your home folder, then run a

  1. wget https://s3-us-west-2.amazonaws.com/backup/weekly/2017-04-16/domain.tar.gz

then, via WHM Home »Backup »Restore a Full Backup/cpmove File

Restore with Username

select /home/acctname.tar.gz

then restore...

just seem there would be an easy way to programmatically accomplish this...

photo
1

Any news about this? It's 3 years old and now that remote incremental backup is almost ready we need a way to restore from remote. Thanks

photo
2

+1

It does not make sense to be able to make a copy in an external FTP server and not be able to recover it to restore.

photo
1

No specific updates on this yet. With the work we've been doing in the backup system recently I'm hoping we'll see something to resolve this get added as well. As soon as I have more information I'll be back to let everyone know!

photo
1

It would be awesome if the backups could be restored over SSH