I am attempting to perform a VSS backup and restore of the DFS writer on a server 2012r2 box.
When performing a VSS restore on the same VM as where the backup was created it restores successfully. The problem comes in when restoring to another VM. The only difference between the 2 VM's is the active directory domain name. The operation fails at pre-restore before even attempting to replace any files.
Taking a look at the writer metadata I can see there is a difference in the componentName attribute which is what appears to be blocking the restore. If I modify the component name to be the same then the restore works as expected.
<WRITER_METADATA xmlns="x-schema:#VssWriterMetadataInfo" version="1.2" backupSchema="323"><IDENTIFICATION writerId="2707761b-2324-473d-88eb-eb007a359533" instanceId="49c17128-495e-4db0-b73b-ea7fac30092b" friendlyName="DFS Replication service writer" usage="BOOTABLE_SYSTEM_STATE" dataSource="OTHER" majorVersion="0" minorVersion="0"/><RESTORE_METHOD method="RESTORE_IF_CAN_BE_REPLACED" writerRestore="always" rebootRequired="no"/><BACKUP_LOCATIONS><FILE_GROUP logicalPath="SYSVOL" componentName="FF6DE134-771E-49FF-9FF6-044ACB84A028-4BFA2380-DDB4-4B6D-8B42-8383DCC527D9" caption="SYSVOL Share" restoreMetadata="no" notifyOnBackupComplete="yes" selectable="yes" selectableForRestore="yes" componentFlags="0"><FILE_LIST path="C:\Windows\SYSVOL" filespec="*" recursive="yes" filespecBackupType="3855"/></FILE_GROUP><EXCLUDE_FILES path="C:\Windows\SYSVOL\domain\DfsrPrivate" filespec="*" recursive="yes"/><EXCLUDE_FILES path="C:\Windows\SYSVOL\staging areas\steve.2012r2ad.com" filespec="*" recursive="yes"/><EXCLUDE_FILES path="C:\Windows\SYSVOL\domain\DfsrPrivate\ConflictAndDeleted" filespec="*" recursive="yes"/></BACKUP_LOCATIONS></WRITER_METADATA>
What would be the best approach to prepare the writer for a restore operation where there is a difference in the component name.