Cross-Site Versioning
Cross-site versioning is a feature of Hammerspace Global File System (GFS) that allows you to keep a record of file changes when a file is modified in one site and then saved in a different site. The last site to modify the file is considered the owner of the file.
The Global File System is a core capability of Hammerspace platform that allows users to access files from different locations as if they were all stored in the same place.
Cross-site versioning is configured using the log-xfer objective. When you create a log-xfer objective, you can specify how long you want to keep a version of a file after it is saved in a different site. The options are 1 hour, 1 day, 1 week, or 1 month.
Configuring Cross-Site Versioning Using the Admin CLI
Enter the following command to set the log-xfer objective for a share using the Admin CLI.
share-objective-add --name <share name> --objective log-xfer-1-<duration>
For example, to keep a version of a cross-versioned file for one week after it is saved in a different site, you would use the following command:
share-objective-add --name <share name> --objective log-xfer-1-week
Configuring Cross-Site Versioning Using the GUI
Use the following procedure to configure the cross-file versioning for a share using the GUI.
-
Enter the cluster IP address in your browser to open the GUI.
-
Select Data from the left-side panel and see the Shares tab.
-
Locate the share you want to configure and click the pencil icon for that share in the Applied Objectives column.
-
In the popup, click Add Objective and in the Filter, type “log-xfer” to see the options available for cross-file versioning.
-
From the available objectives, select a duration for how long you want to keep the cross-site versioned file and click Apply. The options are for an hour, day, week, or month.
-
In the Objectives tab for the share, you can see the new log-xfer objective and verify that its applicability is TRUE, and it is Active. Click Close to finish.