Data Takeout
Export your whole project with Data Takeout: prepare the project, run the export, see what data you get, and the security considerations.
Using the Data Takeout feature in Users & Settings, it is possible to export the entire contents of your project. This can come in handy when
- making a snapshot of your entire project for any purpose.
- terminating a project without loosing any data.
- doing project POCs and keeping them for reference after they have ended.
- leaving us.
Before you start
You need
- A project role that can run components. ReadOnly users can’t (see User roles).
- Amazon S3 bucket in any region.
- An IAM user’s access key ID and secret access key, with
s3:ListBucket,s3:GetObject,s3:PutObjectands3:DeleteObjecton that bucket. Prepare project shows how to create the bucket, the user and its policy.
What each tab needs
- Prompt tab Kai, the Kai Agent button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai.
- UI tab a browser.
- CLI / API tab kbagent, connected to your project. The checks only read.
Prepare Project
Section titled “Prepare Project”We strongly recommend that you create a dedicated user with a dedicated bucket to prevent an accidental leak of credentials or your project management.
If you are familiar with AWS Cloud Formation, the application repository offers a CF template (opens in a new tab) to create all required resources.
-
Create an S3 Bucket following the Amazon documentation (opens in a new tab). Name it keboola-data-takeout, for example, and choose a region compatible with your Amazon subscription. If unsure, choose US Standard (N. Virginia).
-
Create an IAM User (Identity and Access Management) following the Amazon documentation (opens in a new tab). You get an Access Key ID and Secret Access Key with the new user. You can always regenerate them in the IAM Management Console:

- Create and Assign a User Policy. In Amazon IAM, select Users and user data-takeout. Then create a new Inline policy in the Permissions tab:

In the next dialog, select Custom Policy:

Name the policy and paste the following definition in JSON format as the policy document:
{ "Statement": [ { "Action": [ "s3:ListBucket", "s3:GetObject", "s3:PutObject", "s3:DeleteObject" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::keboola-data-takeout/*", "arn:aws:s3:::keboola-data-takeout" ] } ]}Make sure to replace keboola-data-takeout in the above document with the true name of your S3 bucket.

Having your S3 bucket named and its region set, along with the Access Key ID and Secret Access Key of the IAM user, you are ready to export the project.
Export Project
Section titled “Export Project”Go to Keboola and select Users & Settings. In the Settings tab, click the Data Takeout button:

Now fill in the Access Key ID, Secret Access Key, S3 Region, and the S3 Bucket name:

You can also configure the path inside the S3 bucket. For instance, set the path to my-take/ and the data will be stored in s3://keboola-data-takeout/my-take/.
To store the export in the bucket root, leave the path empty.

To monitor the progress of the data export, click the Export started link. The data takeout may take a considerable amount of time if your project is large.
Check:
Did the latest Data Takeout job (component keboola.project-backup) in my project finish, and with what status?Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.
When the export finishes, the S3 path you set contains buckets.json, tables.json, configurations.json
and the configurations/ folder, plus in/ and out/ folders for the stages that have tables, unless you exported the structure only
(see Exported Data).
kbagent job list --component-id keboola.project-backup --limit 1Status is success once the export has finished; the files themselves are in your S3 bucket.
Exported Data
Section titled “Exported Data”The exported project has the following general structure:
buckets.json— all buckets in the project and their metadata. *Linked buckets are not exported.tables.json— all tables in the project and their metadata (bucket, columns, description, etc.) Table aliases are not exported.configurations.json— all components used in the project and main properties of their configurations/in/,/out/and/sys/folders — all project tables in the CSV format (compressed with gzip (opens in a new tab)). Important:systables contain only configuration of older components and may not be present in your project.- /configurations/ — all configurations created in the project organized by component names into a folder. Each configuration lists all properties (including configuration rows) and all versions of each configuration. These also contain definitions of all your transformation queries.

If you tick the Export project structure only checkbox when exporting, no actual data will be exported.
Only configurations and sys tables as configurations of legacy components will be exported.
Security Considerations
Section titled “Security Considerations”-
The Data Takeout tool will overwrite existing files in your S3 bucket (no files will be deleted though). Make sure your S3 bucket is empty, or use an appropriate S3 path.
-
If your configurations contain encrypted values (such as database server passwords), these values will be exported encrypted. Exported encrypted values cannot be decrypted.
-
Once the files are written to your S3 bucket, make sure they are kept safely and only authorized persons can access them. Also, deactivate the AWS Key.
Was this page helpful?
Thank you for helping improve Keboola's documentation!