Setting retention in files
The retention feature provides a way to ensure that the files are not deleted or modified until the retention period is applied on the files. You can set and show the retention period on files from the Access command-line interface.
The file system should be created with worm=yes option to use the retention feature. See the Storage> fs create man page for more information.
To set retention:
Storage> fs retention set [path] [retention_period]
Where path is the specified file or directory on which retention is set. If the specified path is a directory, then retention is set on all the files that are currently present in the directory.
retention_period is the duration for which retention is set. It can be in [1-9](s|S|h|H|d|D|m|M|y|Y) or mm-dd-yyyy or mm-dd-yyyy:hh:mm:ss format.
The retention period cannot be reduced once it is set.
Note:
To show retention:
Storage> fs retention show [path]
Where path is the specified file on which retention is set.
See the Storage> fs man page for detailed examples.