A snapshot preserves an image of a volume at a certain point in time, so that you can get back to a known good data set in the event of accidental deletion, overwrites, or corruption. Snapshots are instant, so you can create almost as many as you like to enable a small recovery point objective without affecting performance. Try creating a snapshot in the MapR Control System:
- In the Navigation pane, expand the MapR-FS group and click the Volumes view.
- Select the checkbox beside the name of the volume you created, then click the New Snapshot button to display the Snapshot Name dialog.
- Type a name for the new snapshot in the Name... field.
- Click OK to create the snapshot.
With MapR, you can use schedules to automate the creation of snapshots:
- In the Volumes view, display the Volume Properties dialog by clicking the volume name, or by selecting the checkbox beside the volume name then clicking the Properties button.
- In the Replication and Snapshot Scheduling section, choose a schedule from the Snapshot Schedule dropdown menu.
- Click Modify Volume to save changes to the volume.
When you create a snapshot of a volume, it is accessible inside a special directory called .snapshot at the top level of the volume. If you have followed all the steps so far and named your volume "my-volume," you can see the snapshot via NFS by going to the directory
/mapr/default/baz/.snapshot and typing
In the next step, you'll see how to mirror a volume.Next: Creating Mirrors