cancel
Showing results for 
Search instead for 
Did you mean: 

how to import a fake contentstore

peodrom
Champ in-the-making
Champ in-the-making
Hi to all,
in Alfresco 4.1.5 I have to import a contentstore from a live site to a test site.
In live site are store Documents with personal information and is not possible to copy this document in test site.
I can copy all db information and contentstore from a site to other one but i have to replace bin file that have inside document with fake files

can some one help me??

thanks
3 REPLIES 3

niketapatel
Star Contributor
Star Contributor
Can you please elaborate more on this - "but i have to replace bin file that have inside document with fake files"

If I understand correctly then You need to import contentstore from your prod to test env then you need to restore your contentsore, DB and index as a single package. [You may rebuild index in test env. as per your requirement or back it up too to save time]
All 3 must be in sync and need to follow standard backup [Hot or cold] and then restore it in test env else your restore may fail.

Please refer this for details - http://docs.alfresco.com/4.0/concepts/ch-backup-restore.html

peodrom
Champ in-the-making
Champ in-the-making
this is correct, but i can not move document saved by alfresco users from production to test env because this type of documents have reserverd infomration.
this is why i have to replace bin file in content store that are file saved from alfresco users (As pdf, doc, xml, excel)

mrogers
Star Contributor
Star Contributor
You should be able to replace the "contentStore" spring bean with your own fake implementation that generates test data.    There may be unit tests in alfresco that already do this.