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

# Back up your data

> Copy the data folder to keep your templates, tokens and settings safe.

All the data of OpenTemplates is in the `databases` folder inside the OpenTemplates folder: profiles, layouts, templates, API tokens, the configuration, the logs and uploaded files. See [The data folder](../../reference/data-folder/).

## Make a backup

OpenTemplates writes changes to disk about 10 seconds after you save them. Wait a little after your last change, then:

**1.** Stop OpenTemplates.

**2.** Copy the folder, for example:

```bash
cp -a databases ../opentemplates-backup-2026-11-19
```

**3.** Start OpenTemplates again.

## Restore a backup

**1.** Stop OpenTemplates.

**2.** Replace the `databases` folder with your copy.

**3.** Start OpenTemplates.

The backup holds the primary access token and the API tokens in plain text. Keep it as safe as the server itself.

To copy one profile only, use [Export and import](../export-import/).
