---
title: Back up your data
project: OpenAuth
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openauth/1-0/guides/backups/
updated: 2026-11-19T09:22:00.799Z
---

# Back up your data

> Copy the data folder of OpenAuth and restore it.

Everything OpenAuth keeps is in one folder: `databases` inside the OpenAuth folder (`/www/.src/databases` in Docker). See [The data folder](../../reference/data-folder/).

## Make a backup

**1.** Stop OpenAuth, so every setting is written.

**2.** Copy the whole `databases` folder:

```bash
tar -czf openauth-backup.tar.gz databases
```

**3.** Start OpenAuth again.

With Docker, copy the folder out of the container:

```bash
docker cp openauth:/www/.src/databases ./openauth-databases
```

The backup holds the provider secrets and the tokens, so keep it as safe as the server.

## Restore

Stop OpenAuth, replace the `databases` folder with the copy and start OpenAuth. Your tokens, extensions, provider settings, primary access token and the sign-in log are back.

Sign-ins in progress are not part of the backup; they live in memory only.
