---
title: Back up your data
project: Todomator
version: 1.7
section: recipes
language: en
license: MIT
url: https://totaljs.es/docs/todomator/1-7/recipes/back-up-your-data/
updated: 2026-11-19T04:33:09.388Z
---

# Back up your data

> Save the database and the attached files.

Todomator keeps its data in two places. Back up both.

| Data | Where it is |
| --- | --- |
| Tickets, users and settings | The PostgreSQL database |
| Attached files | The `databases` folder in the application folder |

## Save the database

```bash
pg_dump "postgresql://user:password@localhost:5432/todomator" > todomator.sql
```

## Save the attached files

Run this command in the application folder:

```bash
tar -czf todomator-files.tar.gz databases
```

Keep both files in a safe place, away from the server.
