edmiRemoteStopBackup

EdmiError edmiRemoteStopBackup(SdaiServerContext serverContextId,  
                               SdaiOptions       options,       
                               SdaiInvocationId  *edmiInvocationId);

This function stops a backup task. This function is legal for superuser only.

Arguments


TypeNameComment
SdaiServerContext

serverContextId

A superuser context identification, from edmiDefineServerContext

SdaiOptions

options

See description of available options below.

SdaiInvocationId

*edmiInvocationId

Not yet used. When the <edmiInvocationId> is specified unequal NULL, the actual operation will be asynchronous and a handle (identifier) of the call will be returned in the <edmiInvocationId> argument.
This handle can be used in later operations for requesting the status (waiting, running, finished ..) and the result of the actual operation.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

 

Options


  

OptionComment
TERMINATE_ACTIVE_BACKUPWhen this option is selected, the backup process is stopped even if the backup thread is active doing backup. If not selected, an ongoing backup is not interrupted

 

Example


 

 EdmiError rstat, error;
 SdaiServerContext superContextId;
 SdaiOptions options = 0;
  
 /* Create Server Context */
 rstat = edmiDefineServerContext("SuperContext",
 "superuser", "", "super123", 
 "TCP", "9090", "MyServerHost", 
 NULL, NULL, NULL, NULL, NULL, &superContextId); 
  
 /* Stop active backup (after it is completed) */
 if (rstat = edmiRemoteStopBackup(superContextId, options, NULL) {
 printf("\nError %d in edmiRemoteStopBackup: %s", rstat, 
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 ...

 

See also

Filter by label

There are no items with the selected labels at this time.

Â