Auto Backup/Restore Dynamic Queue Members

I have a warm standby configured and a secondary trunk configured at my provider to send calls to trunk 2 if my primary server fails (trunk 1). I would like to be able to “capture” the state of the dynamic queue members and restore it to the backup server periodically during the day so when new people come on shift, the backup server would have relevant “who is logged in” info. My phones are setup with accounts for the backup server and stay logged in. Just not sure how to pull this off. Thanks in advance if you can assist.