snapshooter

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 7 Imported by: 0

README

snapshooter

Docker Cloud Build Status

Create and clean up Elasticsearch snapshots on a schedule.

Example

$ ./snapshooter \
    --repo=backups --type=s3 --settings bucket=my_bucket \
    --window P1M=PT1H \
    --window P3M=P1W \
    --window P3Y=P1M \
    --delete

Create a S3 snapshot repository named "backups" (if one doesn't already exist).

Then create hourly snapshots that are kept for one month, weekly snapshots that are kept for 3 months, and monthly snapshots that are kept for 3 years. Delete old snapshots.

Usage

usage: snapshooter [<flags>] [<url>]

Create and clean up Elasticsearch snapshots on a schedule.

Flags:
      --help                    Show context-sensitive help (also try
                                --help-long and --help-man).
  -v, --verbose                 Show debug logging.
      --window=P1M=PT1H ...     Snapshot frequency + TTL. May be set
                                multiple times. ISO 8601 Duration string
                                format. Example: `--window P1M=PT1H` ==
                                keep hourly snapshots for 1 month.
  -d, --delete                  If set, clean up old snapshots. This is
                                false by default for safety's sake.
      --repo="backups"          Name of the snapshot repository.
      --type=TYPE               If set, create a repository of this type
                                before creating snapshots. See also:
                                '--settings'
      --settings=SETTINGS ...   Use these settings creating the snapshot
                                repository. May be set multiple times.
                                Example: `--type=s3 --settings
                                bucket=my_bucket`

Args:
  [<url>]  Elasticsearch URL. Default: http://localhost:9200

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL