Back up and restore
Ferry does not back up datastores. You dump the database to a file on a schedule.
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 pg_dump.
docker exec ferry-ds-notes-db pg_dump -U notes_db notes_db > notes-$(date +%F).sqlRestore
Restore into a new datastore:
docker exec -i ferry-ds-notes-db psql -U notes_db notes_db < notes-2026-09-27.sqlIf you delete the datastore, you delete the data
ferry db rm notes-db removes the container and its volume. While notes has a reference to the datastore, Ferry refuses, unless you add --force.