Grouping Files into Filesets
Sample - Configuring Age-Based Filesets
13-28 CLI Storage-Management Guide
Showing Filesets in a Managed Volume
All filesets can be alternatively configured within a managed volume. To show the
configuration for such a fileset, specify the namespace and volume name before the
fileset name:
show policy filesets namespace volume fileset-name
where
namespace (1-30 characters) is the fileset’s namespace.
volume (optional, 1-1024 characters) identifies the fileset’s volume.
fileset-name (optional, 1-1024 characters) chooses the fileset.
Sample - Configuring Age-Based Filesets
The following command sequence creates several filesets as building blocks, then
joins them together in a union fileset. This creates a fileset out of *.xls and *.doc files
in /xyz/public that have been accessed in the last 30 days:
First, create a fileset that recursively matches all *.xls files in /xyz/public:
bstnA6k(gbl)# policy-filename-fileset xls_files
bstnA6k(gbl-ns-vol-fs-name[xls_files])# name match “*.xls”
bstnA6k(gbl-ns-vol-fs-name[xls_files])# path /xyz/public
bstnA6k(gbl-ns-vol-fs-name[xls_files])# recurse
bstnA6k(gbl-ns-vol-fs-name[xls_files])# exit
Create a similar fileset for *.doc and *.pdf files:
bstnA6k(gbl)# policy-filename-fileset doc_files
bstnA6k(gbl-ns-vol-fs-name[doc_files])# name regexp “\.(doc|pdf)$”
bstnA6k(gbl-ns-vol-fs-name[doc_files])# path /xyz/public
bstnA6k(gbl-ns-vol-fs-name[doc_files])# recurse
bstnA6k(gbl-ns-vol-fs-name[doc_files])# exit
Join the two filesets in a union:
bstnA6k(gbl)# policy-union-fileset office_files
This will create a new policy object.
Comentarios a estos manuales