Find us on social media
Migrate your website to Baires Host
Complete migration process: files, database, emails and DNS change without downtime.
Migration overview
Migrating your website involves four main steps: backing up from the old host, uploading to Baires Host, importing the database, and switching DNS.
Step 1: Backup from your current host
Files
Download all your website files:
# Via SSH on old server
cd /home/user/public_html
tar -czf ~/site-backup.tar.gz .Or use cPanel File Manager → select all → Compress → download the zip.
Database
Export your database:
# Via SSH
mysqldump -u username -p database_name > ~/database-backup.sqlOr via phpMyAdmin → select database → Export → Go.
Email accounts
Note down all email accounts and their passwords. If you use email forwarding or filters, document those too.
Step 2: Upload files to Baires Host
Via cPanel File Manager
- Log in to your new cPanel at Baires Host
- Go to File Manager →
public_html - Click Upload and upload your backup archive
- Right-click the archive → Extract
Via SSH/SCP (faster for large sites)
# Upload from your local machine
scp site-backup.tar.gz user@NEW_SERVER_IP:~/
# SSH into new server and extract
ssh user@NEW_SERVER_IP
cd ~/public_html
tar -xzf ~/site-backup.tar.gzStep 3: Import the database
Create the database in cPanel
- Go to Databases → MySQL Databases
- Create a new database
- Create a new user
- Add user to database with All Privileges
Import the data
Via phpMyAdmin:
- Go to Databases → phpMyAdmin
- Select your new database
- Click Import → choose your SQL file → Go
Via command line (for large databases):
mysql -u username -p database_name < database-backup.sqlUpdate configuration files
Update your application's database connection settings:
WordPress (wp-config.php):
define('DB_NAME', 'new_database_name');
define('DB_USER', 'new_database_user');
define('DB_PASSWORD', 'new_password');
define('DB_HOST', 'localhost');Laravel (.env):
DB_DATABASE=new_database_name
DB_USERNAME=new_database_user
DB_PASSWORD=new_passwordStep 4: Test before switching DNS
Verify your site works on the new server before changing DNS:
Edit your local hosts file
On your computer, temporarily point your domain to the new server:
Windows: C:\Windows\System32\drivers\etc\hosts
macOS/Linux: /etc/hosts
Add:
NEW_SERVER_IP yourdomain.com
NEW_SERVER_IP www.yourdomain.comBrowse your site and verify everything works. Remove these entries after DNS switch.
Step 5: Switch DNS
Once everything is verified:
- Update nameservers at your registrar to:
```
ns1.baires.host
ns2.baires.host
```
- Or update A records to point to your new Baires Host IP
Tip: Lower your TTL to 300 (5 minutes) a day before migration to speed up propagation.
Step 6: Install SSL certificate
After DNS propagation:
- In cPanel → Security → SSL/TLS Status
- Run AutoSSL for your domain
- Enable HTTPS redirect
Step 7: Recreate email accounts
- Go to cPanel → Email → Email Accounts
- Create each email account with the same addresses
- Update email client settings with new server details
Post-migration checklist
- All pages load correctly
- Forms submit successfully
- Images and media display properly
- SSL certificate is active
- Email sending and receiving works
- Cron jobs are recreated
- Redirects are working
- Remove hosts file entries from your computer
Minimize downtime
- Migrate during low-traffic hours
- Lower DNS TTL 24-48 hours before migration
- Keep the old hosting active for a few days after DNS switch
- Monitor for any 404 errors in the first 48 hours