verify.py

nla_control.scripts.verify.run(*args)

Entry point for the Django script run via ./manage.py in the Django project directory

Parameters

*args -- additional arguments to the script, see below

Returns

None

Script arguments
  • verify_now -- set the retention time to be now

Purpose:

Script to check from a list of files which files have associated check sums that have been calculated via the normal backup validation process.

Algorithm:

Make a table with entries so that logical paths i.e the file containing full paths that a user would reference, are converted to spot name paths which are more easy to manipulate under the current processing scheme. A user would reference a file with the path /badc/faam for instance which really points to the spot /badc/faam -> /datacentre/archvol/pan23/archive/faam. The latter is the value we will use to reference any files.

Now check to see if the file in the list has a check sum in the associated checksum files. Output and appropriate message with each of the filenames.