1.5 KiB
1.5 KiB
| title | seotitle | description | menu | weight | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Update a bucket | Update a bucket in InfluxDB | Update a bucket's name or retention policy in InfluxDB using the InfluxDB UI or the influx CLI. |
|
202 |
Use the InfluxDB user interface (UI) or the influx command line interface (CLI)
to update a bucket.
Update a bucket in the InfluxDB UI
-
Click the Organizations tab in the navigation bar.
{{< img-hd src="/img/organizations-icon.png" title="Organizations icon" />}}
-
Click on the name of an organization, then select the Buckets tab. All of the organization's buckets appear.
-
To update a bucket's name or retention policy, click the name of the bucket from the list.
-
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