Backup to a different server
If i rent another dedicated server and i make a vps there, can i backup my vps from my primary server there and restore it from one click or do i need to copy over files back and forth? With or without whm on that second server.
-
Hello, You could install cPanel on the remote server and store backups there by using a destination type such as SFTP on the source server: Backup Configuration - Documentation - cPanel Documentation Then, if you ever need to restore the accounts to the remote server, you'd use the steps documented at: Backup Restoration - Documentation - cPanel Documentation Once you do that, you'd complete steps "4" and "5" from the following document: How to Move All cPanel Accounts from One Server to Another - cPanel Knowledge Base - cPanel Documentation Thank you. 0 -
Thank you. But what if i install an extra vps. Can i simply set the backup path to a specific map on that server and just use it to store backups from my 5 other vps servers that do have cpanel on them? I can manually copy them back if they are needed for restore so without cpanel on that server that is storing the backups? That would be great as then i can store all the backups in 1 spot and can still copy them quickly back.. 0 -
Hello, Yes, that's possible. You'd just need to ensure a service such as FTP or SFTP is setup on the remote destination so the cPanel servers can transport the backups. Thank you. 0 -
I have it setup in a test enviroment and it seems to work fine except for one thing which i find a bit odd.. it does transfer the files as I setup but on the vps where the backup is created it leaves the folder with the date and the folder accounts. Why does it not remove those? 0 -
Hi, May be some authentication/authorization problem that is not letting it remove.. or may be some files are still in it.. You can check a plugin called cpRemote where you can backup the data to a remote VPS and then restore it also with a single click.. 0 -
Folders are empty so i will look into the permissions if there is something. I think it's because i had to create a extra user to transport it over sftp. Will also login to that plugin thanks! 0 -
I have it setup in a test enviroment and it seems to work fine except for one thing which i find a bit odd.. it does transfer the files as I setup but on the vps where the backup is created it leaves the folder with the date and the folder accounts. Why does it not remove those?
Do you have "Retain backups in the default backup directory." enabled in "WHM >> Backup Configuration"? Thank you.0 -
No i did not have that enabled but to be clear, the accounts folder is empty, it just fails to remove that folder and because of that also the folder with the backup date.. so it's a bit strange. 0 -
No i did not have that enabled but to be clear, the accounts folder is empty, it just fails to remove that folder and because of that also the folder with the backup date.. so it's a bit strange.
The existence of that directory is useful should you need to restore an account from a remote backup destination. You can simply move the backup from the remote destination to the matching path on the local server for restoration. Thank you.0 -
So it leaves them there on purpose then 0 -
So it leaves them there on purpose then
Yes, this is by design as it will match your retention settings. For instance, I setup daily backups to a remote destination with a retention setting of "1" and with backups configured to not remain on the local server. I then created the following directories: /backup/2017-09-20 /backup/2017-09-21 /backup/2017-09-22 Upon the next backup generation, it removed the "/backup/2017-09-20" and "/backup/2017-09-21" directories. Thank you.0 -
@24x7server Wow i actually wanted to use cpremote as you recommended so i wanted to install a trial to first test and then purchase for other 6 or 7 vm's but one minute in chat with them and i never want to deal with this company again.. Asked if they can change an IP for the trial so i can try it on a different vps while the trial was unused and all you get is no, it's in the SLA. When you tell them it's not very helpfull they just reply with thank you for using. Uninstalling. 0 -
Hi, Hello, You could install cPanel on the remote server and store backups there by using a destination type such as SFTP on the source server.
I wouldn't recommend using a cPanel server as a backup destination. Mixing backups and live sites will simply cause extra IO, and if it's only for backups (storage server) - then cPanel is definitely an overkill here. Eli0 -
It want the backups from my live vps'ses and onto an empty vps where there are no sites or just 1. If i put cpanel on there is undecided. But backups are first created on the vps where the sites are so i will have to deal with io anyways? Or maybe transfer it to my local nas but i prefer to use wget to transport it back. 0 -
Hi, I think that a backup server should be used only for a backup server, and a web server should be used as a web server. Besides IO, there are more aspects to consider - first and most important one is security. A compromised web server that contains backups from 5 other servers, could put in risk all of your 5 web-servers data. A dedicated backup server could be easily more secured with lan-only access or ip restrictions. Just my opinion here... Eli. 0
Please sign in to leave a comment.
Comments
15 comments