Document replicating a Cloud organization (#3147)

Closes #3067
pull/3181/head
pierwill 2021-09-27 15:38:30 -05:00 committed by GitHub
parent 80f3404626
commit 791495e58b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,50 @@
---
title: Replicate an organization
seotitle: Replicate an organization in InfluxDB Cloud
description: Replicate the state of an organization in InfluxDB Cloud
menu:
influxdb_cloud:
name: Replicate an organization
parent: Manage organizations
weight: 110
---
The state of an organization consists of metadata (dashboards, buckets, and other resources) and data (time-series).
An organization's state at a point in time can be
replicated to another organization by copying both metadata and data.
To replicate the state of an organization:
1. Create a new organization using the [InfluxDB Cloud sign up page](https://cloud2.influxdata.com/signup).
Use a different email address for the new organization.
2. **Replicate metadata**.
Use an [InfluxDB template](/influxdb/cloud/influxdb-templates/create/) to migrate metadata resources.
Export all resources, like dashboards and buckets, to a template manifest
with [`influx export all`](/influxdb/cloud/influxdb-templates/create/#export-all-resources).
Then, [apply the template](/influxdb/cloud/reference/cli/influx/apply/#examples-how-to-apply-a-template-or-stack)
to the new organization.
3. **Replicate data**.
Use one of the methods below to copy data to the new organization:
- [Export data to CSV](#export-data-to-csv)
- [Write data with Flux](#write-data-with-flux)
4. Re-invite users.
### Export data to CSV
1. Perform a query to return all specified data.
2. Save the results as CSV (to a location outside of InfluxDB Cloud).
3. Write the CSV data into a bucket in the new organization
using the [`influx write`](/influxdb/cloud/reference/cli/influx/write/) command.
### Write data with Flux
Perform a query to return all specified data.
Write results directly to a bucket in the new organization with the Flux
[`to()` function](/flux/v0.x/stdlib/influxdata/influxdb/to/).
{{% note %}}
If writes are prevented by rate limiting,
use the [`influx write --rate-limit`](/influxdb/cloud/reference/cli/influx/write/#write-annotated-csv-data-using-rate-limiting)
flag to control the rate of writes.
For more information on rate limits in InfluxDB Cloud,
see ["Exceeded rate limits"](/influxdb/cloud/account-management/data-usage/#exceeded-rate-limits).
{{% /note %}}

View File

@ -114,6 +114,7 @@ In **extended annotated CSV**, measurements, fields, and values and their types
- [from multiple sources](#write-annotated-csv-data-from-multiple-sources)
- [and prepend annotation headers](#prepend-csv-data-with-annotation-headers)
- [from a compressed file](#write-annotated-csv-data-from-a-compressed-file)
- [using rate limiting](#write-annotated-csv-data-using-rate-limiting)
### Line protocol
@ -276,3 +277,11 @@ influx write \
--file path/to/data.csv.comp \
--compression gzip
```
##### Write annotated CSV data using rate limiting
```sh
influx write \
--bucket example-bucket \
--file path/to/data.csv \
--rate-limit 5 MB / 5 min
```