Recurnix docs

Docs › Backups and restore

Backups and restore

Recurnix backs itself up every night. This is what that covers, what it does not, and how to put a backup back.

What runs, and when

The nightly run takes a database dump at 01:30, before anything else in the night is allowed to happen — before renewals are raised, before anything is charged, before anything is suspended. If the night goes wrong, the dump is from before it went wrong.

Dumps are written to storage/app/backups/ and named by the moment they were taken, for example recurnix-db-20261116-013001.sql.gz.

Settings → Automation sets how many are kept. Older ones are pruned as new ones are written.

What is in a dump, and what is not

A dump holds the database: your clients, invoices, payments, services, domains, tickets, settings and staff. That is everything the product knows.

It does not hold:

  • your uploaded files — logos, ticket attachments, knowledge-base images, which live in storage/
  • your .env, which holds the database credentials and the application key

So a complete way back is the nightly dump plus a copy of storage/ and .env. Your host's own account backup usually covers the second part; it is worth checking that it does rather than assuming.

Taking one by hand

php artisan recurnix:backup

It writes to the same folder and prints the path. An administrator can also download the most recent dumps from Settings → Updates & licence; that needs the update.settings permission, so a member of staff who can only look cannot take your database home.

Restoring

Restoring is deliberately not a button. Putting a database back over a running billing system is the kind of thing that should take a moment's thought and a shell.

gunzip -c storage/app/backups/recurnix-db-20261116-013001.sql.gz | mysql -u USER -p DATABASE

Then clear the caches:

php artisan optimize:clear

If you are restoring onto a different server, copy storage/ across as well, and write a fresh .env with that server's database credentials and the same APP_KEY as the original. A different key means every encrypted value — gateway secrets, registrar credentials, stored payment tokens — cannot be read back.

Offsite copies

A backup on the same disk as the thing it backs up is half a backup. Recurnix can push its dumps to S3-compatible storage; it ships switched off and is configured under Settings → Backups.

Until you have set that up, download a dump now and then, or make sure your host's account backup really does run and really can be restored. The way to know is to restore one.

Last modified: 16 November 2026 · This page documents Recurnix, self-hosted billing and automation. Ask a question.