'Copying standalone Mongodb Database?

I'm just using a standalone Nuxt with mongodb backend. As we are moving servers, can we just manually copy the database to the new server and everything will be working as it is? e.g. old /data/db to our new server /data/db

Note: website will be offline when copying happens and all the Nuxt files will be copied to the new server too. Also there's no sharding or anything like that



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source