KB-133378: warning.ifdateequal

warning.ifdateequal

The warning.ifdateequal command generates a warning in the job result if the current backup has no difference in the timestamp from the last backup (the backup is saved despite the warning).

The command is used in combination with a UNC job. The prerequisite is that the option Upload only when timestamp is different (reduces network load) 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 warning.ifdateequal command warns that the MyDeviceArchive.zip archive has not been updated since the last job execution.

Note

This command is exclusively used for the script interface AfterUpload.

Syntax:

warning.ifdateequal

Example

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

Firstly, all backups with an exception of the latest will be deleted. Then a warning will be given if the date of the current backup is the same as the last. The warning is logged in the job results.


Last update: September 15, 2023

Related Articles

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center