# Backups

## RBD Snapshots

To create an RBD snapshot, run&#x20;

```bash
rbd snap create <IMAGE NAME>@<SNAP NAME>
```

where `<SNAP NAME>` is the requested snapshot name.

For example, to snapshot `virtual-machines/steeltoe` with a snapshot named `20190108` :

```bash
rbd snap create virtual-machines/steeltoe@20190108
```

We use the `YYYYMMDD` format as our naming convention for snapshot based on the day of the snapshot.  For example, a snapshot made on January 1, 2019 would be `20190101` . Any further snapshots have a `-1` (etc.) appended.

## CephFS Snapshots

To create a snapshot of a CephFS directory, run:

```bash
mkdir <PATH TO DIR>/.snap/<SNAP NAME>
```

More information is available at <https://github.com/ceph/ceph/blob/master/doc/dev/cephfs-snapshots.rst#creating-a-snapshot>

We use the same snapshot naming convention as RBD snapshots.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.tjhsst.edu/technologies/storage/ceph/backups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
