Yes, I did and I am always doing for my customers.
No need to copy all directory.
Just follow the below steps.
- Install ERPNext on New Server.
- Take a backup of the Mysql database of the old server and restore it on the new server.
- Copy sites directory of the old ERPNext folder and replace it on your new server.
- Migrate site.