Update a bucket

Use the InfluxDB user interface (UI) or the influx command line interface (CLI) to update a bucket.

Update a bucket in the InfluxDB UI

  1. Click the Settings tab in the navigation bar.

  2. Select the Buckets tab.

  3. To update a bucket’s name or retention policy, click the name of the bucket from the list.

  4. Click Update to save.

Update a bucket using the influx CLI

Use the influx bucket update command to update a bucket. Updating a bucket requires the following:

  • The bucket ID (provided in the output of influx bucket find)
  • The name or ID of the organization to which the bucket belongs
Update the name of a bucket
# Pattern
influx bucket update -i <bucket-id> -o <org-name> -n <new-bucket-name>

# Example
influx bucket update -i 034ad714fdd6f000 -o my-org -n my-new-bucket
Update a bucket’s retention policy
# Pattern
influx bucket update -i <bucket-id> -o <org-name> -r <retention period in nanoseconds>

# Example
influx bucket update -i 034ad714fdd6f000 -o my-org -r 1209600000000000