Documentation

esc
    Databases / Backups

    Database backups

    There are no automatic backups yet. Take your own dumps, add snapshots of the data disk, and know what each one does and does not give you.

    What exists today

    A database's data is on its own disk, which survives stops, starts and patching. It does not survive deleting the database, a mistaken DROP, or a bug in your application, and there is no second copy of it.

    Take a dump

    Run the engine's dump tool from any machine that can connect to the database, and keep the output somewhere other than the database's own network: a volume on another machine, or storage of your own.

    Terminal
    $ pg_dump "host=db-7k2q9x4m1a.af-abj-2.db.pantechdynamics.com user=dbadmin dbname=defaultdb" \    --format=custom --file=defaultdb-$(date +%F).dump

    Restore into an empty database with pg_restore:

    Terminal
    $ pg_restore --no-owner -d "host=… user=dbadmin dbname=restored" defaultdb-2026-10-05.dump

    Use a pg_dump at least as new as the server: version 18.

    --single-transaction gives a consistent copy of InnoDB tables without locking them. Run dumps on a schedule, from cron on a machine in the same VPC, and test a restore now and then: a backup you have never restored is a guess.

    Dumps and snapshots

    A dumpA snapshot
    What it isYour data as SQL or the engine's archive formatA copy of the whole data disk at one instant
    ConsistencyConsistent: one transaction's viewCrash-consistent: like after a power cut, unless the database was stopped
    Where it livesWherever you put itWith us, billed per GB-hour until deleted
    RestoreToday, into any database of the same engineNot available yet
    Take onepg_dump, mysqldump, mariadb-dumpPOST /databases/{database_id}/snapshots

    A snapshot is taken while the engine is writing. Restoring it will be like starting the database after a power cut: PostgreSQL, MySQL and MariaDB all recover from that, but anything not yet committed is lost. Stop the database first for a quiesced copy. Either way, it is not a substitute for a dump you can restore anywhere: use both.

    Was this page helpful?

    Updated