## pyre history set

Set the retention policy

### Synopsis

<policy> is six comma-separated numbers:
  seconds-tier minutes, minutes-tier hours, hours-tier days,
  days-tier weeks, weeks-tier months, months-tier years
e.g. 30,36,14,8,12,3 keeps per-second history for 30 minutes, per-minute
for 36 hours, hourly for 14 days, daily for 8 weeks, weekly for 12
months and monthly for 3 years.

```
pyre history set <volume> <policy> [flags]
```

### Examples

```
  pyre history set backups 30,36,14,8,12,3
```

### Options

```
  -h, --help   help for set
```

### Options inherited from parent commands

```
      --api string       API base URL (default from the profile, or https://api.pyredata.io)
      --ca-cert string   PEM file with an extra CA to trust (self-hosted managers)
      --insecure         skip TLS certificate verification (lab use only)
  -o, --output string    output format: table, json or plain (default "table")
      --profile string   config profile to use (see: pyre config)
  -q, --quiet            print results only, no notices
      --token string     API token (default from the profile; prefer PYRE_TOKEN in scripts)
  -y, --yes              answer yes to every confirmation (for scripts)
```

### SEE ALSO

* [pyre history](pyre_history.md)	 - Show or set a volume's retention policy

