Is it possible to configure the Deployer to place a published Binary in 2 locations?
I have two development DD4T sites pointing at the same publication. One is a feature branch essentially.
I would like to have the Deployer place the Binaries in both.
I have tried the following:
Adding a second element with a different Id
<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultFile" defaultFilesystem="false">
<Root Path="c:\inetpub\wwwroot\phase1" />
</Storage>
<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultFile2" defaultFilesystem="false">
<Root Path="c:\inetpub\wwwroot\phase2" />
</Storage>
Then tried adding a second Item element to my Publication element.
<Publication Id="9" defaultStorageId="defaultdb" cached="true">
<Item typeMapping="Binary" storageId="defaultFile" cached="true"/>
<Item typeMapping="Binary" storageId="defaultFile2" cached="true"/>
</Publication>
This results in the item being placed in defaultFile2. I'm guessing because it's a Hashmap or similar internally.
I also tried adding a second element to the storage element like:
<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultFile" defaultFilesystem="false">
<Root Path="c:\inetpub\wwwroot\phase1" />
<Root Path="c:\inetpub\wwwroot\phase2" />
</Storage>
This has similar results, with the item being placed in Phase2 but not Phase1
Then I tried having two Publication elements:
<Publication Id="9" defaultStorageId="defaultdb" cached="true">
<Item typeMapping="Binary" storageId="defaultFile2" cached="true"/>
</Publication>
<Publication Id="9" defaultStorageId="defaultdb" cached="true">
<Item typeMapping="Binary" storageId="defaultFile" cached="true"/>
</Publication>
Again this results in the item being placed in whatever the second mapping is.
Am I barking up the wrong tree here?
I thought about MkLinking the folders, but I have a subfolder _images/css which is not published and is different for each phase.
I don't want to use Blueprinting to solve the problem as this is not the direction I wish the project to take.
Any ideas apart from running a batch script every few minutes to robocopy everything?