Migrate data to other VPS

Questions LEMP Stack Q & ACategory: LinuxMigrate data to other VPS
Jazz1611 asked 8 months ago

How to migrate data(old VPS) to other VPS(new VPS)? Stable and safe for migrate. Same configure of oneinstack on both VPS. Hope you can response to me soon. Thank you.

1 Answers
lempstack Staff answered 8 months ago

1. backup website and DB data
~/oneinstack/backup_setup.sh # choice localhost

You can backup file(/data/backup/*) copy to new vps and the same path.
2. sync configure file
lampstack: /usr/local/apache/conf/vhost
lempstack: /usr/local/nginx/conf/{vhost,rewrite}