KB-127646: abort.ifdateequal

abort.ifdateequal

The command abort.ifdateequal generates an error if there were no differences in the timestamp of the last two backups.

The command is used in combination with an UNC job. The option Use timestamp check to reduce network traffic needs to be activated in the UNC job configuration.

Some systems are backed up by UNC jobs, where an archive (for example,MyDeviceArchive.zip) created either manually or by a service on the device is backed up directly. The UNC job always saves the archive, regardless of whether the backup is current or not. The abort.ifdateequal command can thus be used to ensure that the archive must be renewed cyclically, otherwise the UNC job will run into an error (if the timestamp ofMyDeviceArchiv.ziphas not been updated since the last job execution).

Note

This command is exclusively available for the script interface AfterUpload.

Syntax:

abort.ifdateequal

Example

Function ScriptAfterUpload
{
file.deleteold
{
root $vdog::specific->dirbackup
spec ftLastWriteTime
keep 1
}
abort.IfDateEqual
}

The script shown in the example above deletes all old backups after a new backup has been uploaded to the server. This script aborts if no differences were detected between the last two backups.


Last update: September 15, 2023

Related Articles

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center