🗄️ 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:
- Engine: MySQL, MariaDB or PostgreSQL.
- Connection: host, port, user and password with read permissions.
- Databases: the list to dump (one, several or all).
- Dump folder: inside the task's source — that way the
.sqlfiles are protected by the backup like any other file.
What happens on each run
- The engine runs the dump (
mysqldump/pg_dumpequivalent) into the given folder. - Each database ends up as a self-contained
.sql, consistent at the instant of the dump. - 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.sqlfrom 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.