Backup to Amazon S3
Settings → Backup to Amazon S3 backs up your organization every day to a bucket you own. The first backup is a full copy; after that, each day writes only the records that were added, changed or deleted, with a new full copy at the interval you choose. The files are organized by table, so you can query them where they are or rebuild your data from them.
Backup to Amazon S3 is an add-on feature. If you don’t see Backup to Amazon S3 in Settings, ask CRMSix support to turn it on. It needs the Export data permission (Admin profile).
1. Prepare a bucket and a key
- In the AWS console, create an S3 bucket (or use one you have). Keep Block all public access on. Turning on Bucket Versioning is a good idea: an overwritten or deleted file can then be recovered.
- In IAM, create a user for CRMSix and give it only this policy (replace the bucket name, and
crmsixif you choose another folder):{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::my-company-crm-backup/crmsix/*" } ] } - Create an access key for that user and keep the access key ID and secret access key for the next step.
The key can only add files. CRMSix can’t read, list or delete anything in your bucket, so even someone with access to CRMSix can’t remove your backups. The page shows this policy, already filled in with your bucket and folder.
2. Set up the backup
- Go to Settings → Backup to Amazon S3.
- Enter the Bucket name and choose its Region.
- Folder: where in the bucket backups go (
crmsixto start). Inside it, CRMSix uses a folder named after your organization ID. - Full copy every: 7, 14, 30 or 90 days. The days in between write only what changed.
- Enter the Access key ID and Secret access key. The secret is stored encrypted and is never shown again; to change it, paste a new one.
- Tick Back up every day and choose Save.
- Choose Test connection. CRMSix writes a small file,
_connection-test.txt, to your folder and shows where. - Choose Back up now for the first full copy, or wait for the daily run.
Using Cloudflare R2, Wasabi, MinIO or other S3-compatible storage? Tick Use S3-compatible storage and enter the service’s S3 API
endpoint (it must start with https://).
How backups run
- Full copy: every record of every backed-up table. Taken first, at the interval you chose, when you choose Take a full copy now, after you change the bucket, region, folder or endpoint, and after a full copy that didn’t finish.
- Changes: on the other days, only the records added, changed or deleted since the last backup. Each changed record is written as it is at the time of the backup; a deleted one is written as a deletion.
- Backups run once a day. A large backup is done in steps: it continues while people in your organization are signed in, and with the next daily run.
- Backups on the page lists each one: when, full copy or changes, done or failed (with the reason), records written and deleted, files, size, and who started it (or the daily schedule).
- Turning Back up every day off stops recording changes. When you turn it back on, the next backup is a full copy.
- Sandboxes aren’t backed up; set it up in production.
What’s in your bucket
Everything is under s3://<bucket>/<folder>/<organization ID>/:
| Path | What it holds |
|---|---|
full/<time>/<table>/part-00001.jsonl.gz | Every record of the table at that full copy |
full/<time>/_organization.json | Your organization’s own details |
full/<time>/manifest.json | Written last: the tables, their columns and keys, record counts and the order to load them in |
changes/<table>/date=<day>/<time>-00001.jsonl.gz | Records changed in a backup: "_op": "upsert" with the record, or "_op": "delete" with its key |
changes/_runs/<time>.json | Written last: what that changes backup wrote |
Files are JSON Lines, gzipped: one record per line, with the same field names as your data in CRMSix. <time> is the
backup’s start in UTC (for example 20261130T071502123Z), so files sort in the order they were written. A full copy without its
manifest.json, or changes without their _runs file, didn’t finish.
Never included: passwords, two-factor secrets, saved keys and tokens (for email, payments and integrations), sign-in sessions and
codes, logs, and the Recycle Bin. Where a field is required, its value is written as omitted-from-backup.
Querying the files with Athena
Each table’s folder can be an Amazon Athena table. For example, accounts as of a full copy:
CREATE EXTERNAL TABLE crmsix_accounts_full (id string, name string, type string, owner_id string, created_at string, updated_at string)
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe'
LOCATION 's3://<bucket>/<folder>/<organization ID>/full/<time>/accounts/';
and every change to accounts since, by day:
CREATE EXTERNAL TABLE crmsix_accounts_changes (`_op` string, `_at` string, id string, name string, updated_at string)
PARTITIONED BY (`date` string)
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe'
LOCATION 's3://<bucket>/<folder>/<organization ID>/changes/accounts/';
MSCK REPAIR TABLE crmsix_accounts_changes;
manifest.json lists every table’s columns and their types. DuckDB and most data tools read JSON Lines directly too.
Restoring
- One record deleted by mistake? First check the Recycle Bin: deleted records stay there for 30 days and can be restored.
- Data as it was at a moment: the newest full copy before that moment, with the changes after it applied in order, gives every record as it was. Each table’s result can be opened as it is, or loaded into a database with CRMSix’s structure, keeping every record’s ID and its links.
- To restore data into CRMSix, contact CRMSix support with the date and time you need.
- After a restore, people set a new password with Forgot password, and saved keys (email, payments, integrations) are entered again, since backups never hold them.
If a backup fails
| Message | What to check |
|---|---|
| Access denied: the key needs s3:PutObject | The IAM policy: its bucket name and folder must match the settings (the folder in the policy ends with /*) |
| The bucket … doesn’t exist | The bucket’s name, and that it’s in the region you chose |
| The bucket … is in another region | Choose the bucket’s own region |
| The access key ID isn’t recognized / The secret access key doesn’t match | Copy the key again from IAM (an access key that was deleted or deactivated stops working) |
| The secret access key can’t be read: enter it again | Paste the secret access key again and save |
After fixing the cause, choose Back up now. A full copy that failed is taken again; changes are kept until a backup writes them, so nothing is lost while backups fail.