move_files_to_nla.py

Add files that are on tape only to the NLA system so that requests for them to be restored can be made.

This is to be run via cron.

For each file on disk in filesets marked for archive on tape only:

  • Check that big enough and is not a link.

  • Add to the system to be verified.

This is designed to be used via the django-extentions runscript command:

$ python manage.py runscript move_files_to_nla

nla_control.scripts.move_files_to_nla.get_filesets()

Get a list of filesets marked as candidates for tape storage only from the service provided by the cedaarchiveapp.

Param

None

Returns

A list of filesets that are marked as tape storage only.

Return type

List[string]

nla_control.scripts.move_files_to_nla.run()

Function picked up by django-extensions. Runs the scan for matching filesets.

Param

None

Returns

None