PostgreSQL · MySQL · MariaDB · SQL Server

    Move your database backups offsite

    A database isn't backed up over the network: you take a local dump, then ship it over SFTP or rsync to the Nimbus Backup Gateway, which protects the history with Proxmox Backup Server (Primary PBS → AirGap → LTO). Offsite dumps, immutable and out of a ransomware's reach.

    pg_dump mysqldump mariadb-dump SQL Server SFTP / rsync Dedicated VPN Immutable PBS AirGap LTO

    The "local dump → transport" pattern

    A database engine exposes no backup network protocol: it serves SQL queries, not files. The right method is two steps: your server produces a consistent dump locally (for MySQL and MariaDB, see the mysqldump / mariadb-dump guide), then that file is shipped over SFTP or rsync to the Gateway, inside a dedicated VPN. It's the dump — not the database — that goes offsite. Not sure which method fits? See the guide choose the right backup method. If it is the engine itself you want to hand over rather than its dumps, RDEM also runs managed MariaDB.

    PostgreSQL

    pg_dump / pg_dumpall

    MySQL

    mysqldump

    MariaDB

    mariadb-dump

    SQL Server

    BACKUP DATABASE / TO URL

    Oracle

    Data Pump (expdp)

    MariaDB · MySQL

    MariaDB / MySQL: a more direct method, no Gateway

    For MariaDB and MySQL, we tested and chose a more elegant method than shipping files: one dump per database, sent straight to a Proxmox Backup Server datastore with proxmox-backup-client, plus binlogs every 5 minutes to go back to just before a mistake. No SFTP, no Gateway: the client talks to PBS natively.

    • Deduplication at upload: 98.6% on the 2nd pass, one hour after the 1st, in our bench (uncompressed dumps, pxar archive); 24-hour measurements in progress.
    • Point-in-time recovery by replaying binlogs, validated in our bench.
    • Client-side encryption, which we recommend: if you enable it, the key stays with you.
    • Proxmox's official package on Debian; on Ubuntu, its static package, from its repository or ours; RHEL, Rocky, Alma, Fedora, Arch and Alpine through our unofficial repository.
    Backing up MariaDB to Proxmox Backup Server: scripts, restore and measured figures

    For PostgreSQL, SQL Server, Oracle, or if you only want to install an SFTP client, the dump → Gateway pattern described below remains the universal path.

    How it works, step by step

    Four steps, from dump to vault, without exposing your database engine.

    1

    Consistent local dump

    Your server produces a point-in-time dump: pg_dump / pg_dumpall (PostgreSQL), mysqldump or mariadb-dump (MySQL/MariaDB), BACKUP DATABASE (SQL Server), Data Pump (Oracle). The engine stays local, never exposed to the internet.

    2

    Dedicated VPN

    An encrypted tunnel (WireGuard or OpenVPN) links your server to the Gateway. No inbound port to open: your server initiates the outbound tunnel, nothing is exposed in clear on the internet.

    3

    SFTP or rsync transport of the dump

    The dump file is shipped to the Gateway over SFTP (easy to script after the dump) or rsync (ships only new dumps). FTPS, SMB or an S3 endpoint via MinIO are also available.

    4

    Nimbus protects to PBS + AirGap

    The Gateway ingests the dump, then Nimbus replicates it to a Primary PBS — and optionally a disconnected AirGap PBS and LTO tape in a vault. PBS provides versioning, deduplication and immutability of the history.

    To compare SFTP, rsync, FTPS, SMB and S3 by source, see the backup protocols matrix. Do your dumps land on a NAS? See offsite backup for a QNAP NAS or offsite TrueNAS backup.

    SFTP or rsync for your dumps?

    Both run inside the dedicated VPN and are ingested by the Gateway. The choice depends on your dump rotation.

    SFTP

    The simplest to chain after the dump: one line in your post-dump script pushes today's file. Ideal when each dump is a new standalone (timestamped) file.

    • Trivial post-dump scripting
    • One dump file = one transfer
    • Works with cron / scheduled task

    rsync

    Handy if you keep a rotating dumps directory: rsync ships only what changed, cutting the transfer window on a constrained link.

    • Ships only new dumps
    • Good on constrained links
    • Keeps a mirrored directory

    An S3-compatible object endpoint (via MinIO on the Gateway) is also possible — for example SQL Server 2022 BACKUP TO URL or an rclone client — but SFTP or rsync stay the most direct path for a dump file.

    From dump to air-gap

    Once the dump is ingested, it can be replicated to several PBS, then archived to tape. You compose the chain to match your PBS plan.

    Database server (dump)
    Nimbus Backup Gateway
    Primary PBS
    AirGap PBSoptional
    LTO in a vaultoptional

    Multi-PBS architectures (France, Europe, AirGap) are detailed on the PBS plans and AirGap PBS pages. Why two sites? See the OVH Strasbourg fire case study.

    Gateway Cloud pricing for your dumps

    The simplest path to move database dumps offsite: the Cloud Gateway, hosted and supervised by Nimbus. Prices excl. tax.

    Recommended

    Cloud Gateway

    2 TB included

    150EURexcl. tax / mo
    • Dedicated VM + dedicated VPN
    • 2 TB included, +15EUR/TB
    • SFTP / FTPS / SMB / rsync / S3 (MinIO)
    • 99EUR setup
    Request a quote

    Full pricing on the hub

    Cloud and Appliance offers, full price grid, antivirus scan option and setup: it's all centralised on the hub, so the information isn't duplicated.

    See the offsite NAS backup hub for the offers and the protocols matrix for the transport paths.

    For the big picture and offsite backup pricing, see the business page.

    Let PBS manage the dump history

    On the server side, keep a short local rotation (today's dump, maybe a few days). It's Proxmox Backup Server that owns the long history offsite:

    Versioning & retention
    Deduplication of successive dumps
    Immutability (anti-ransomware)
    Validated restore test

    Under managed plans, Nimbus can write and supervise the dump + transport script (Linux cron, Windows scheduled task or SQL Server Agent), set up the VPN and validate an end-to-end restore.

    Without a Gateway, the dump can also go straight to a PBS datastore with proxmox-backup-client, installed from our repository of signed packages on RHEL, Rocky, Alma or Fedora (Proxmox's official package on Debian, static package on Ubuntu): that's the method we chose for MariaDB / MySQL.

    Frequently asked questions — databases

    A database engine speaks no backup network protocol, so you do it in two steps. First a consistent local dump (pg_dump / pg_dumpall for PostgreSQL, mysqldump or mariadb-dump for MySQL/MariaDB, BACKUP DATABASE for SQL Server). Then the dump file is shipped to the Nimbus Backup Gateway over a dedicated VPN tunnel, via SFTP or rsync. The Gateway ingests the dump, then Nimbus protects it on PBS, and optionally on an AirGap PBS and LTO tape.

    Because a database engine exposes no file-transfer protocol: it serves SQL queries, not backups. Copying the live data files of a database that is being written gives an inconsistent state that cannot be restored. A logical dump (or the engine's native snapshot) produces a point-in-time consistent image that restores cleanly. It is that dump — not the database itself — that you move offsite.

    The Gateway natively exposes SFTP, FTP/FTPS, SMB and rsync, all running inside the dedicated VPN. For a database dump we recommend SFTP (easy to script right after the dump) or rsync (handy to ship only new dumps). An S3-compatible object endpoint is also available via MinIO on the Gateway — for example SQL Server 2022 BACKUP TO URL or an rclone client — but SFTP or rsync stay the simplest path for a dump file.

    The dump → transport pattern covers PostgreSQL, MySQL, MariaDB, Microsoft SQL Server, as well as Oracle exports (Data Pump). As long as your engine can produce a local backup file, that file can be moved offsite to the Gateway over SFTP or rsync. The engine never needs to be exposed to the internet: it writes its dump to local disk, and only the transport leaves through the VPN.

    The common approach is a cron job (Linux) or a scheduled task (Windows / SQL Server Agent) that runs the dump, then chains the SFTP or rsync transfer to the Gateway. We advise a short local rotation (today's dump) and letting PBS handle long retention offsite: PBS provides the versioning, deduplication and immutability of the history. Under managed plans, Nimbus can write and supervise that dump + transport script for you.

    Yes. For MariaDB and MySQL, we tested and chose one uncompressed dump per database, sent straight to a Proxmox Backup Server datastore with proxmox-backup-client, without going through the Gateway, plus binlogs every 5 minutes for point-in-time recovery. In our bench, a 2nd pass run one hour after the first deduplicated 98.6% of the dump; 24-hour measurements are in progress. Client-side encryption is an option we recommend: if you enable it, the key stays with you. The full method, with scripts and figures, is published on mariadb.rdem-systems.com.

    Yes. Once the dump is ingested by the Gateway, Nimbus protects it on Proxmox Backup Server with retention and immutability, then optionally on a disconnected AirGap PBS and LTO tape in a vault. Even if your database server or LAN is encrypted by ransomware, the offsite copy of the dumps stays intact and restorable. No inbound port is opened: everything runs inside a dedicated VPN (WireGuard or OpenVPN).

    Move your dumps offsite with confidence

    We wire your dump to the Gateway over SFTP or rsync, protect the history on PBS and validate a restore. A 15-minute technical chat, no strings attached.