3.7 Example 7: Perform Backup of a File Share Remotely

This example demonstrates backing up a file share remotely as described in section 2.5.2.3.

Prerequisites

None.

Initial System State

None.

Final System State

The backup of the required file share has finished successfully.

Sequence of Events

Perform backup of a file share

Figure 14: Perform backup of a file share

The following steps describe this sequence:

  1. The Admin Client contacts the File Server Shadow Copy Agent service to query if the share is supported by the server for shadow copy operations by using the IsPathSupported method, as described in [MS-FSRVP] section 3.1.4.9.

  2. The File Server Shadow Copy Agent service processes the method and returns zero on success.

  3. The Admin Client calls the GetSupportedVersion method to query the minimum and maximum protocol versions, that are supported by the server, as described in [MS-FSRVP] section 3.1.4.

  4. The File Server Shadow Copy Agent service processes the method and returns zero on success.

  5. The Admin Client calls the SetContext method to set the context of subsequent shadow copy operations, as described in [MS-FSRVP] section 3.1.4.2.

  6. The File Server Shadow Copy Agent service processes the method and returns zero on success.

  7. The Admin Client calls the StartShadowCopySet method to initiate a new shadow copy set on the server, as described in [MS-FSRVP] section 3.1.4.3.

  8. The File Server Shadow Copy Agent service processes the method and returns zero on success.

  9. The Admin Client calls the AddToShadowCopySet method to add a share to the shadow copy set, as described in [MS-FSRVP] section 3.1.4.4.

  10. The File Server Shadow Copy Agent service processes the method and returns zero on success.

  11. The Admin Client calls the PrepareShadowCopySet method to ensure that the preparation for creating the shadow copies on the shares has finished.

  12. The File Server Shadow Copy Agent service waits for the volumes that are backing up the shares to complete their shadow copy preparation and returns zero on success.

  13. The Admin Client calls the CommitShadowCopySet method to wait synchronously for the completion of the commit process on a shadow copy set, as described in [MS-FSRVP] section 3.1.4.

  14. The File Server Shadow Copy Agent service processes the method and returns zero on success.

  15. The Admin Client contacts the File Server Shadow Copy Agent service to expose the shadow copy as a share by using the ExposeShadowCopySet method, as described in [MS-FSRVP] section 3.1.4.6.

  16. The File Server Shadow Copy Agent service triggers the shadow copy to be exposed from the file server as a file share and returns zero on success.

  17. The Admin Client contacts the File Server Shadow Copy Agent service to get the shadow copy information on a file share on the server by using the GetShareMapping method, as described in [MS-FSRVP] section 3.1.4.11.

  18. The File Server Shadow Copy Agent service processes the method and returns zero on success.

  19. The Admin Client calls the RecoveryCompleteShadowCopySet method to indicate that the shadow copy creation sequence has finished, as described in [MS-FSRVP] section 3.1.4.7.

  20. When this method finishes, the shadow copy share creation is complete and available to be used by the administrator to retrieve the data. The File Server Shadow Copy Agent service returns zero on success.