---
title: Back up your data
project: OpenFiles
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openfiles/1-0/guides/backups/
updated: 2026-11-19T07:45:42.017Z
---

# Back up your data

> Which folder to copy so you can restore files, tokens, settings and the account.

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

## Make a backup

**1.** Stop OpenFiles, so no upload is half written.

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

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

**3.** Start OpenFiles again.

With Docker, copy the folder out of the container:

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

## Restore

Stop OpenFiles, replace the `databases` folder with the copy and start OpenFiles. Your storages, files, links, API tokens, settings and account are back.

If you index files in [PostgreSQL](../postgresql/), back up that database at the same time.
