V
V
vertuos2014-04-07 08:51:31
Nginx
vertuos, 2014-04-07 08:51:31

Quick and easy move from one VPS to another?

Hello!
The task is generally simple, but I would like to make the move simple and quick, so I need advice.
There is a working site on the wordpress engine, nginx and php settings, iptables rules set and fail2ban configured. All this happiness is spinning on VPS at reg.ru, but it was decided to move to digitalocean. Question: how can I drag everything to a new hosting, without long work in the console to restore all settings?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tushev, 2014-04-07
@tushev

- Think in advance which packets should be put on the receiving side.
- Block access to the old server
- All scripts and configs are conveniently synchronized via rsync. (Resynchronization is obtained very quickly, if suddenly something didn’t work out on the first try.)
- The database is one command that dumps the databases via remote ssh on one side, and immediately executes these dumps on the other.
- We switch DNS, and on the old server we put a redirect, in case someone's DNS has not been updated.
If the site is responsible and you don’t want downtime, then in this case I first work out all the transfer commands in test mode. Then I make a bash script that performs the entire transfer in one run. And then I just run this script once.

P
Puma Thailand, 2014-04-07
@opium

And what is there for a long time I
packed the configs with one command I
copied the list of packages
I packed the files
I packed the database
on the new server everything is the same only in a slightly different order
, approximately less than 10 commands will come out in the console

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question