Migrate data to other VPS

Questions LEMP Stack Q & ACategory: LinuxMigrate data to other VPS
Jazz1611 asked 5 years ago
Hello, 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. Regards,
1 Answers
lempstack answered 5 years ago

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

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}

点赞