Migration From Digital Ocean to E2E

Follow these additional steps to migrate your Frappe site from Digital Ocean to E2E:

Step 1: Backup on Digital Ocean

  • Create a compressed backup of your Frappe Bench:
tar -czvf frappe-bench.tar.gz frappe-bench
  • Create a compressed backup of your MySQL data:
sudo tar -czvf /home/extension/mysql_data_backup.tar.gz mysql

Step 2: Transfer Backup Files to E2E

  • Transfer backup files from Digital Ocean to the new E2E server:
scp frappe-bench.tar.gz extension@64.227.143.226:/home/extension
scp mysql_data_backup.tar.gz extension@64.227.143.226:/home/extension

Step 3: Restore Backup on E2E

  • Extract the Frappe Bench backup:
tar -xzvf frappe-bench.tar.gz
  • Backup existing MySQL data on E2E and restore transferred data:
sudo mv /var/lib/mysql/ /var/lib/mysql-old
sudo tar -xzvf mysql_data_backup.tar.gz -C /var/lib
sudo service mysql restart
  • Update permissions to ensure proper access:
chmod -R o+rx /home/extension/

Step 4: Setup Bench and Sites

  • Navigate to the Frappe Bench directory and set up bench:
cd frappe-bench
bench setup requirements
bench setup node
bench setup redis
bench build
  • Migrate and update the Frappe site:
bench migrate
bench update
  • Restart the bench services:
bench restart

Verification

  • Ensure all services are up and running without errors.
  • Verify the Frappe sites are accessible and functioning correctly.

This concludes the documentation for restarting servers, their services, and migrating Frappe sites via Portainer and SCP commands.

On this page