Back up your data
Copy the data folder to keep your templates, tokens and settings safe.
On this page
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.
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:
cp -a databases ../opentemplates-backup-2026-11-193. 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.