Hi Nik,
that's an interesting question. :)
Unfortunately, I don't have real experience with this in terms of WEBCON BPS. I've used this approach only with NAV and SharePoint. But these are quite similar in terms of transferring data from Prod to Test/Dev.
Let's break it down, we have:
- logic, part of the database
- data, part of the database
- privileges, part of the database
- website, can be ignored
- windows services, can be ignored
- search index, not sure whether this needs to be transferred in your case.
Logic/Data
Since logic and data reside in the same database and are inseparable the only option is to replace the whole database in Test/Dev or add a backup as an additional one. In my experience the replace approach is good enough for "updating" Test but not an option for Dev. You can freeze the deployments to Test so that there will be a point in time were the logic in Test and Prod matches so that you don't loose anything. This does not apply to Dev, in a lot of cases it will be contain updated logic which you don't want to lose. :) In most cases I needed new Data in Dev, when there was a bug in Prod or an performance issue. Adding an additional content database worked well enough in these cases.
Privileges
If there's a different source for users, the current privileges need to be replaced. For example you could fetch all users and replace specified logins using the ReplaceLogins stored procedure.
[dbo].[ReplaceLogins] @oldLogin = N'CCLS_RnD_Analyst', @newLogin = N'CCLS_RnD_Analyst@bps.local',
I don't know your data, so I can't tell whether this is a valid approach. Maybe your content database contains employee contracts which should be available in Test/Dev. Of course, you could delete those prior changing the privileges. :)
Environment
After transferring the database you will need to change the environment type:
https://community.webcon.com/forum/thread/366?messageid=366
Hm, I think I forgot a point but I just can't remember.:)
These are only my thoughts regarding this, and someone else can provide more input. :)
Best regards,
Daniel