Migrate data to other VPS

Questions LEMP Stack Q & ACategory: LinuxMigrate data to other VPS
《Migrate data to other VPS》Jazz1611 asked 3 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
《Migrate data to other VPS》lempstack answered 3 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}

点赞