FerryDocs

Back up and restore

Ferry does not back up datastores. You dump the database to a file on a schedule.

Edit on GitHub
pg_dumppsqlnotes-dbSQL filethe backupNew datastore

Ferry does not back up datastores. You dump the database to a file on a schedule.

1 / 2

Back up

Dump the database on a schedule, for example from a cron entry on the server. The tool is .

Terminal
docker exec ferry-ds-notes-db pg_dump -U notes_db notes_db > notes-$(date +%F).sql

Restore

Restore into a new :

Terminal
docker exec -i ferry-ds-notes-db psql -U notes_db notes_db < notes-2026-09-27.sql

If you delete the datastore, you delete the data

ferry db rm notes-db removes the container and its . While notes has a reference to the datastore, Ferry refuses, unless you add --force.

On this page