fix_restore_disk.py¶
v0.2 of NLA introduced RestoreDisks - which allow files to be restored to multiple locations. This adds a field to the TapeFile model (restore_disk) for files that have been restored. Any file that has been restored prior to v0.2 will have an empty entry for this field. This script fills in the field to be the first RestoreDisk
This is designed to be used via the django-extensions runscript command
$ python manage.py runscript fix_restore_disk
-
nla_control.scripts.fix_restore_disk.
run
()¶ Entry point for the Django script