The process is highlighted for shifting WordPress from Shared hosting to a VPS. But, may be used for shifting WordPress from any host to any other, irrespective of nature.
Shared hosting is completely different from VPS or dedicated server. In a way shifting from shared hosting to a VPS or dedicated server can be considered as an upgrade. If you are looking towards this upgradation, I wish you good luck. If you face difficulty at any step just send me an email.
Step 1 – Backup using UpdraftPlus
UpdraftPlus is the most popular backup plugin. UpdraftPlus has both free and paid version. In normal purpose, free plugin is having features which are enough for keeping the daily backup at a remote location. In this tutorial, we will be using remote location backup using the free version of UpdraftPlus to shift WordPress.
If you don’t have UpdraftPlus yet, install and activate it.
Go to WordPress Dashboard –> Settings –> UpdraftPlus Backups –> Settings.
As you can see in the image above, there are various remote storage options available. But, not all are free to use. Some of these require premium add-ons of UpdraftPlus.
The free ones are given below:
- S3 Compatible (Generic)
- Amazon S3
- OpenStack (Swift)
- Google Drive
You can use Dropbox, FTP, Google Drive and Email without worrying about any expense. The best would be Dropbox. Easy setup and Fast connectivity.
Setting up Google Drive requires to go to developers console of Google and enabling Drive API. FTP would be slow. You may use FTP service provided by your shared host if you wish.
So, moving ahead. Select Dropbox as remote location and click Save Changes.
It will show you a dialog box to connect and authorize Dropbox. Click on the link.
It may show you a page to authorize UpdraftPlus. Taking you to another page as shown below.
Click Complete setup. It will take you back to UpdraftPlus Settings Page with a success message “Success: you have authenticated your Dropbox account.”
So, we connected UpdraftPlus to Dropbox. Now, we need to back up the WordPress.
Go to the first tab in the UpdraftPlus page –> Current Status and click Backup Now.
It will take you to a page such as below. Ensure that “Send this backup to remote storage” is checked. Again click Backup Now. It will run the backup process and upload a copy to Dropbox.
Step 2 – Install WordPress on New Server
Our next step is to install the WordPress on the new server. To do this, we need to edit the DNS (nameserver) records for the domain and point it to the new server.
If you are using CloudFlare or any other DNS host, then changing the DNS records would be super easy. Otherwise, I would strongly suggest starting using CloudFlare.
Read More: Install WordPress on a VPS
The above link explains the method to buy a new VPS, set up CloudFlare and finally installing WordPress on a VPS. It will take some time (in some cases up to 24 hrs) to change the nameserver from your shared host to CloudFlare. So, don’t lose hope.
Once, you are able to install WordPress move to next step, otherwise, you may send me an email to me anytime.
Step 3 – Restoring Backup at the new Location
In order to restore the backup at the new location, you need to follow the similar procedure as given in Step 1. You need to install UpdraftPlus and connect it to same Dropbox account used to connect while backup.
Now, go to the second tab in the UpdraftPlus page –> Existing Backups. This page will show the backups available either locally or on remote storage. Currently, it might be showing no backups.
Click on Rescan remote storage. It will scan the connected remote storage, which in our case would be Dropbox.
Once the scan is finished, you may see the backup at Dropbox.
Click on the Restore button.
Next, you will see a dialog box as above. Ensure that all components are checked to Restore. Again Click Restore.
It will start fetching files from remote storage to local storage and checks for compatibility. In case your website is quite old and big. I suggest restore one component at a time and the last component should be the database.
Now, finally click the Restore button once again. After the restore process will run successfully, you will see the message “Restore Successful”.
After the database restoration, WordPress may ask to login again.
Congratulation for successfully shifting your website to a VPS.
I’m glad to help you out. you may find more such tutorials on my website. Want to get more such tutorials. Subscribe to my Newsletter.