Exists#
Checker name#
File exists check
Description#
Checks whether the selected file-system path exists on the Restore Destination after the restore has completed. The checker can be used for files, directories, symbolic links, and other paths recognized by the underlying file system.
Attribute#
Exists
Selecting the Exists attribute in Verification Rules causes Bacularis
to execute the FileExistsCheck checker.
Supported operators#
==- equal to!=- not equal to
Expected value#
The expected value is selected from:
true- the path is expected to existfalse- the path is expected not to exist
Capabilities#
This checker requires a Restore Destination with the File restore checks capability enabled.
Requirements#
No additional requirements.
Examples#
Verify that a restored file exists:
/etc/bacula/bacula-dir.conf Exists == true
Verify that a path does not exist:
/tmp/obsolete-file Exists == false
Notes and limitations#
This checker verifies only path existence. It does not validate the type, contents, size, ownership, or other properties of the path. Use additional checkers when those properties also need to be verified.
If the path is a symlink pointing to non-existing file, false is returned.