Curing of infected objects makes changes to the handled objects thus posing risks of breaking object integrity. The backup storage functionality is intended for saving from inadvertent file corruption and provides a way for seamless object data restore. Should the important data be lost or get corrupted as a result of cure, the backup storage allows to recover the original untouched object from its backup copy.
The backup storage is a dedicated folder on your disk containing bitwise copies of malicious objects that were either cured or deleted by the KAV SDK. Saved in the backup storage malicious objects are stored on a file system in encrypted format; they also get new names and can be distinguished only by unique identifiers. Certain auxiliary data is also added to each backed up file, so the original size and the size of the copy in the backup storage are not the same. An object identifier is created when the object is placed to the backup storage and can be found in the callback function parameters when it is called with the corresponding event.
The backup functionality is currently available for Windows platform only.
To allow the application using the KAV SDK put infected objects into the backup storage, you have to use a special KAV_O_M_BACKUP scanning flag together with the other parameters of scanning functions. If the scanning function called with this flag detects an infected object, it automatically backs up the copy of that object. For more details on the scanning flag, see section "Scanning modes".
The backup storage functionality enables you to perform the following actions:
kaveQBSetStoragePath function before performing scanning tasks with the KAV_O_M_BACKUP flag enabled.You should set the backup storage location before calling a scanning function with the KAV_O_M_BACKUP flag enabled. If this function is never called, the backup storage will be created in the KAV SDK temporary folder; this folder is set while the KAV SDK is initializing. All the operations with the objects from the backup storage can be applied only to the directory currently selected as the backup storage location.
kaveQBGetStoragePath function.kaveQBGetUsedSpace function.kaveQBGetIds function for this.kaveQBGetIds function you can, for example, get identifiers of the first hundred of objects placed to the backup storage.kaveQBGetObjectInfo function retrieves the original object name and other relevant info about the object with the specified identifier.kaveQBRescanObject function rescans files from backup storage.kaveQBDeleteObject function.kaveQBRestoreObject function places a specified object to the specified location (not the original location).