Working with Backup objects in the command line

You can use the Backup management commands in the command line for the following actions on Backup objects:

Restoring infected objects may lead to a device infection.

Viewing Backup object details

To view the details of the objects in Backup, run:

kesl-control -B --query ["<filter conditions>"] [-n <number>] [--json]

where:

The ObjectId line displays the numeric identifier that the application assigned to the object when placing it in Backup. This ID is used to perform actions on the object, such as restoring or removing the object from the Backup storage.

Restoring objects from Backup

To restore an object under its original name to its original location, execute the following command:

kesl-control --restore <object ID>

where <object ID> is the numeric identifier that the application assigned to the object when placing it in Backup.

To restore an object under a new name to a specified directory, execute the following command:

kesl-control --restore <object ID> --file <file path>

where --file < file path> is the new name of the file and the path to the directory you want to save it to. If the specified directory does not exist, the application creates it.

Deleting objects from Backup

To remove selected objects from Backup, run:

kesl-control --mass-remove --query "<filter conditions>"

where <filter conditions> is one or several logical expressions in the format <field> <comparison operator> '<value>', combined with the help of the logical operator and to limit the results.

Examples:

To remove an object with ID=15:

kesl-control -B --mass-remove --query "ObjectId == '15'"

To remove objects that contain "test" in their names or paths:

kesl-control -B --mass-remove --query "FileName like '%test%'"

To remove all objects from Backup, run:

kesl-control -B --mass-remove

Page top