LucidLink Filespaces is based on a log structured design, making snapshot support a natural extension of our file system. You can schedule and manage snapshots manually or you can schedule these to occur automatically.
Filespace snapshot schedules are managed centrally. Once you set up a snapshot schedule, these will be created automatically, whether the LucidLink Client is connected or not. This makes it possible to handle snapshots in distributed environments where multiple LucidLink Clients are connected to the same Filespace.
To create a snapshot schedule you need to be logged into your filespace as the root user.
lucid help snapshot-schedule
Lucid snapshot-schedule [--list]
Lucid snapshot-schedule --create name --interval interval --retention retention [--start datetime]
Lucid snapshot-schedule --delete name
Snapshot schedule management - requires root permissions Options:
--password password Root user's password is required for creating and deleting snapshot schedules
[--list] Display the list of existing snapshot schedules
--create name Create a snapshot schedule based on interval and retention options. Name format: a-z, A-Z, 0-9, '-_ ()'. Max length 40 chars
--delete name Delete the snapshot schedule with the specified name
[--start] time Local time when the snapshot schedule starts and creates the first snapshot. E.g 1970-01-31T23:00. Default: now
--interval interval Define interval at which to create snapshots (e.g. 1d). Interval units: m-minute; h-hour; d-day; w-week; mo-month; y-year
--retention retention Number of snapshots to keep (e.g. retention 6 for interval 1d means keep last 6 snapshots that are made daily). Snapshots that are exceeding retention count will be automatically deleted
For example, to setup grandfather-father-son (GFS) retention on your filespace, you can do the following:
lucid snapshot-schedule --create "15 minutes" --interval 15m --retention 4 --start 2000-12-31T00:00 lucid snapshot-schedule --create "Hourly" --interval 1h --retention 24 --start 2000-12-31T00:00 lucid snapshot-schedule --create "Daily" --interval 1d --retention 7 --start 2000-12-31T00:00 lucid snapshot-schedule --create "Weekly" --interval 1w --retention 4 --start 2000-12-31T00:00 lucid snapshot-schedule --create "Monthly" --interval 1mo --retention 12 --start 2000-12-31T00:00 lucid snapshot-schedule --create "Yearly" --interval 1y --retention 2 --start 2000-12-31T00:00
You do not have to specify the
--starttime, but by doing so delineates the point at which the snapshot is created. This is especially useful when you want to keep data from a specific date or time as your Daily, Weekly, Monthly or Yearly snapshot. As LucidLink calculates onward from the date specified it is possible to use a date set in the past to drive the appropriate retention behavior.
The above snapshot schedule is an example, and should be modified to suit your retention needs. You will now see snapshots start showing up every 15 minute mark when you run
lucid snapshot --list.
|2||valid||15 minutes||2019-06-20 12:15|
Should you wish to delete a snapshot schedule you can run
lucid snapshot-schedule --delete <name>. Note that you may have to delete previously created snapshots individually using
lucid snapshot --delete <id>.