Answer the question
In order to leave comments, you need to log in
How to do full content migration of CentOS server?
Good afternoon. Tell me how you can do a complete transfer of the server with all the settings and content from one vps to another. So that in fact it remains only to deploy everything on a new vps and all installed distributions, settings, etc. rebuilt on a new one. I read that it is possible through rsync in CentOS, but I did not find a complete guide. Does the virtualization system somehow affect the backup, it is different for 2 vps. Or does it only affect when you make a full server snapshot? In general, please tell me the best way to do it.
Answer the question
In order to leave comments, you need to log in
Rsync everything with the preservation of rights except for the system directories
There is one command, so no one writes manuals
Posix file systems (i.e. all standard file systems on Linux/Unix) work so that an open file can be safely copied. Therefore, you can safely open and delete the executable files of running processes.
This allows you to stop nothing, and just copy all the content.
Critical places that can be copied incorrectly are mutable data (logs, databases), caches.
In your case, when copying the system, you can forget about logs and caches. The bases (and the services that depend on those bases, if any) must be stopped.
And copy everything with the usual rsync from root while maintaining rights.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question