Copy documents to replicaId

Hi,For archiving purpose, i want to have a button that copies selected documents to another database by using the replica ID of that database.

I am using a button that copies by using the name of the server and the name of the database (simpleaction), but as for the main DB, i have replicas of the archive as well, so that’s not the right solution.