🗄️ Database backups (MySQL, MariaDB, PostgreSQL)

A running database can't be copied raw: its internal files are constantly being written and a direct copy would come out corrupt. IO Backup solves this with a consistent dump: right before the snapshot it dumps the databases to SQL in a folder, and that folder goes into the backup.

How to set it up

In the task, options → Database:

  1. Engine: MySQL, MariaDB or PostgreSQL.
  2. Connection: host, port, user and password with read permissions.
  3. Databases: the list to dump (one, several or all).
  4. Dump folder: inside the task's source — that way the .sql files are protected by the backup like any other file.

What happens on each run

  1. The engine runs the dump (mysqldump / pg_dump equivalent) into the given folder.
  2. Each database ends up as a self-contained .sql, consistent at the instant of the dump.
  3. The regular snapshot includes that folder — the database gets versioned just like any file.

Requirements

  • The database engine's dump utility must be installed on the machine (it ships with MySQL/PostgreSQL).
  • The dump user needs read permissions on the chosen databases.
To restore: recover the .sql from the version you want and load it into the database server (mysql < dump.sql / psql < dump.sql).

When to use it

Essential if you're backing up servers with dynamic websites, Nextcloud, WordPress or any app with a live database — the snapshot of the files alone is not a valid copy of the database.