...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiRemoteStopBackup(SdaiServerContext serverContextId,
SdaiOptions options,
SdaiInvocationId *edmiInvocationId);
|
This function stops a backup task.
...
This function is legal for superuser only.
...
Arguments
...
Type | Name | Comment |
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. |
Option: Description:
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Option | Comment |
TERMINATE_ACTIVE_BACKUP | When 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 |
Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an _EDMinterface_ error code. Use edmiGetErrorText to get the error text corresponding to the error code.
Example:
EdmiError rstat, error;
SdaiServerContext superContextId;
SdaiOptions options = 0;
/* Create Server Context */
rstat =
Example
...
Code Block | ||
---|---|---|
| ||
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 (Content by label) | ||||||
---|---|---|---|---|---|---|
|