# snapdir ancestors List ancestor snapshot IDs and their locations. `ancestors` walks the catalog history for a snapshot and prints the IDs that precede it, along with where they were recorded. See the [History guide](../guide/history.md). ## Usage ```text snapdir ancestors [OPTIONS] ``` ### Options `ancestors` takes no positional arguments. It accepts the [global options](overview.md#global-options); the most relevant are `--id` (snapshot whose ancestors to list), `--location`, and `--catalog`. ## Examples List the ancestors of a snapshot: ```console snapdir ancestors --id 1220abc... ``` List ancestors scoped to a particular location: ```console snapdir ancestors --id 1220abc... --location /srv/project ``` ## See also - [`snapdir revisions`](snapdir-revisions.md) — list snapshot IDs for a location - [`snapdir locations`](snapdir-locations.md) — list known locations - [History guide](../guide/history.md)