In order to restore Elasticsearch indices, you must create a new pipeline to deploy 'curator-restore' service.
Define these environment variables to configure manual pipeline:
***DD_SNAPSHOT_RESTORE_NAME**: Snapshot source name to restore indices. Leave it empty to use last snapshot.
***DD_SNAPSHOT_RESTORE_INDICES**: Name/expression to filter indices to restore. Accepts wildcards.
***DD_SNAPSHOT_RESTORE_NAME**: Snapshot source name to restore indices. Leave it empty to use last snapshot. Empty by default.
***DD_SNAPSHOT_RESTORE_INDICES**: Name/expression to filter indices to restore. Accepts wildcards. Leave it empty to restore all indices. Default: `index.name`.
***DD_SNAPSHOT_RESTORE_RENAME_PATTERN**: Expression to match indices names and prepare text groups to replace, in order to rename restored indices. Leave it empty to keep original names. Empty by default.
***DD_SNAPSHOT_RESTORE_RENAME_REPLACEMENT**: Replacement for matched indices names, in order to rename restored indices. Leave it empty to keep original names. Empty by default.
Then, you can run deploy task manually.
### Restore with rename example
For example, to restore last snapshot of an index named `test` with a new name `restored_test`, you should define:
```sh
DD_SNAPSHOT_RESTORE_INDICES=test
DD_SNAPSHOT_RESTORE_RENAME_PATTERN=(.+)
DD_SNAPSHOT_RESTORE_RENAME_REPLACEMENT=restored_$$1 # Double dollar to avoid gitlab-ci replacement
```
Remember to use a renamed value which doesn't interfere with existing aliases.