DB Sync of datasources


since Version 3 we make a database sync of dashboards and datasources between two stages of grafana (live to a play environment).

Since Version 6 it doesnt work anymore, because the password hash is not more accepted in the target instance, i got a loginmask for the datasource, when i open a dashboard.

When i reset the password manually, or give the credentials in the login mask it works again.

How to automate such a sync, or is there a tool/api (not wizzy, Node/npm is not allowed in our environment) or how to make accept grafana the foreign passworg hash.