Migrating Your Website to a New VPS
Migrating your website to a new VPS can improve performance, security, and scalability. Follow this step-by-step guide to ensure a smooth transition.
Step 1: Back Up Your Website Data
Before migrating, create a full backup of your website on your current VPS to ensure no data is lost during the transfer.
- Connect to your current VPS via SSH.
- Back up website files by compressing them:
- Back up the database:
- For MySQL:
- For PostgreSQL:
- Download the backups to your local system or store them on an external server to ensure you have copies in case of any issues.
Step 2: Set Up the New VPS Environment
Prepare your new VPS to receive the website files and database.
- Log in to the QuickServers customer portal and navigate to your new VPS details.
- Access your new VPS via SSH.
- Install necessary software (web server, database server, etc.) if not already set up:
- For Apache:
- For Nginx:
- For MySQL:
- For PostgreSQL:
Step 3: Transfer Your Website Files
- Upload the backup files to your new VPS using
scp
(from your local machine): - Unpack the backup on your new VPS:
Step 4: Transfer the Database
- Copy the database backup to the new VPS:
- Import the database on your new VPS:
- For MySQL:
- For PostgreSQL:
Step 5: Update DNS and Test
- Update the DNS settings for your domain to point to the new VPS IP.
- Test your website by accessing it in a web browser to ensure all files and databases are working as expected.
This step-by-step guide should help you to seamlessly migrate your website to a new VPS on QuickServers.