Keep Live on File Volumes

This objective keeps the live tree on file volumes except file clones (also known as file snapshots in the GUI). The IS_LIVE expression makes sure that this objective does not apply to any data in .snapshot directory.

# smart-objective-create --name "Keep live tree on File" --expression IF\ IS_LIVE&&ACCESS_AGE<7*YEARS&&!FNMATCH\("*/.fsnapshot/*",PATH\)\ THEN\ {SLO('keep-online')}

Keep File Clones (Snapshots) on Cloud/Object Storage

This objective will move file clones (also known as file snapshots in the GUI) to cloud/object volumes. Files that are cloned using the UI or CLI, are placed in a sub-directory called .fsnapshot/<FILENAME>/DATE-TIME.

# smart-objective-create --name "Snapshots in cloud" --expression IF\ FNMATCH\("*/.fsnapshot/*",PATH\)\ THEN\ {SLO('place-on-object-volumes')}

Place Files with Extension PDF on Cloud/Object Storage

This objective will move files with the extension to cloud/object storage. This move will happen after 5 minutes after the last use of the file as per the objective. If the file is opened, then it will be moved back to a file volume and within 5 minutes of last being used, it will again be moved. The subsequent move will only upload data if the file was modified as a copy of the file is already in the cloud/object storage.

# smart-objective-create --name "Place PDF files in cloud" --expression IF\ MATCH_EXTENSION\("pdf",NAME\)&&LAST_USE_AGE>5*MINUTES\ THEN\ {SLO('place-on-object-volumes')}

Move Data in the Archive Directory to Cloud/Object Storage

This objective will move any data placed in or below a directory called archive to the cloud. It is recommended to apply this objective to the root of a share as the archive directory can then be placed anywhere in the share and this objective will apply.

# smart-objective-create --name "Place PDF files in cloud" --expression IF\ FNMATCH\(“*/archive/*”,PATH\)\ THEN\ {SLO('place-on-object-volumes')}

Move Undelete Files to Cloud/Object Storage

DataCore vFilO file system supports the ability to protect data against deletion using an undelete objective. This objective can be applied to any file or directory in the file system and it is available in the UI. This example objective, moves the undelete copy of the file to the cloud/object storage to free up capacity on primary storage.

# smart-objective-create --name "Undelete files in cloud" --expression IF\ IS_UNDELETE\ THEN\ {SLO('place-on-object-volumes')}