Copy repositories from one nexus instance to another

We have an OSS 3.19.1-01 nexus repository, and have created another instance on a different server(same version). I would like to copy all the data/users created repositories from the former repository to the newly created version, without configurations.

How can this be achieved.

You could try using the REST APIs for users, however for obvious reason they do not have access to, nor expose user passwords.

You should consider operating an LDAP server for centrally managed authentication.