SQL Wizard

Backups

Back up, check, restore — and send backups to your own NAS or server on a schedule.

GuideScheduled backups, step by step

SQL Wizard accounts, owners and admins, on plans with Scheduled backups. The backups go to your own storage — over SFTP, or over HTTPS to S3 or WebDAV; SQL Wizard keeps no copy.

  1. Get a place that SQL Wizard may write to: an SFTP account on your NAS or a company server, an S3 bucket (Backblaze B2, Cloudflare R2, Amazon S3, Wasabi …) or a WebDAV folder (Nextcloud …). The guides below show how.
  2. ServerScheduled backupsStorageAdd storage: choose SFTP, S3-compatible or WebDAV, then its fields — a name, where it is, the user (S3: the access key) and password (S3: the secret key), and the folder. The list shows each place with its type and how many schedules use it (point at the name to see the address); Change opens the form again.
  3. Test: SQL Wizard writes, lists and deletes a small file. SFTP shows the server’s key (SHA256:…) — compare it with the key your NAS or provider shows; S3 and WebDAV show the HTTPS certificate it checked.
  4. Save: SFTP remembers the key, so backups go only to that server; HTTPS checks the certificate on every backup. The password or secret key is kept encrypted.
  5. SchedulesAdd a schedule. When: Every day, or the days you click (for example Mo, We and Sa), at a time in your time zone — it starts within 15 minutes of it. What: all databases (new ones too) or chosen ones. Where: drag places from Your storage into Goes to (or use +), drag them to change the order, × takes one out; each has how many copies stay there per database.
  6. Add the schedule: it is in the list with when, what, where, the last and the next run. Per row: Run now (within 15 minutes; the page updates by itself and tells you when it is done), Edit, Pause / Resume and Remove.
  7. History lists every run of the server’s schedules, newest first. Details asks the storage at once what it really holds: each database of the run with its file, and every copy on the storage ✓ or missing ✗, with Download and Restore; a run with a missing copy is marked in the list.
A storage that isn’t always on (a NAS at home): Pause the schedule and use Run now when it is on. A waiting Run now can be cancelled.
A server can have several schedules — for example every night to the NAS and every Sunday to the cloud, each with its own name, days, databases, time and places. Premium sends a schedule to up to 2 places and keeps up to 14 copies; Corporate to all your places and up to 90.
Restore: HistoryDetailsRestore on a copy, choose the database (the one it came from or another on this server) and type its name. SQL Wizard fetches it from the storage and restores it like DatabaseImport: everything in it replaces what the database has now; tables that aren’t in the backup stay.
On the storage: folder / server-number / database / database_date_time.sql.gz with a .json next to it — the page shows the folder under Storage. Restore one with DatabaseImport.
A failed run is e-mailed to the owners and admins.
Open in SQL Wizard

GuideEncrypt your backups with your own key

ServerScheduled backupsEncryption (owners and admins): with a key, every scheduled backup is encrypted before it leaves SQL Wizard. SQL Wizard keeps only the public half of the key, so the files on your storage can be opened only with your secret key — not by your storage provider, not by SQL Wizard.

  1. Make a key: the key pair is made in your browser. The secret key (AGE-SECRET-KEY-1…) is shown once — Download the key file or Copy it, tick that you saved it, then Turn on encryption. Keep it in a password manager or on a USB stick, not on the same storage as the backups.
  2. Or Use my own age key: paste the public key (age1…) of a key made with the free age tool (age-keygen -o key.txt).
  3. From the next run the files are …sql.gz.age (with a .json.age next to them); History shows them with a lock.
  4. Restore and DatabaseImport ask for the secret key (paste it or open the key file). The backup is decrypted in your browser — the key never goes to SQL Wizard’s server — and it is remembered in that tab for 10 minutes, so several restores ask once.
  5. Test my key checks, in the browser, that a secret key is the right one. Change key makes a new one (backups made before still need the old key); turning encryption off asks for your password again, and the backups already made stay encrypted.
  6. Downloads too: HomeSettingsOrganizationEncrypt downloads with the backup key (owners and admins). The files every member downloads — ServerBackups, ServerExport and DatabaseExport — are then encrypted in the browser with the same key before they are saved, as …age files (shop.sql.gz.age); Encryption here shows whether it is on. The pages say so before the download. DatabaseImport and ServerImport ask for the secret key to open them. Turning it off asks for your password again; changing the key keeps it on with the new key, turning encryption off turns it off too.
Without SQL Wizard: the files are in the standard age format, so the free age tool opens them: age -d -i sql-wizard-backup-key.txt shop_2026-11-23_020000.sql.gz.age > shop.sql.gz
Lose the secret key and nobody can open these backups — SQL Wizard can’t give it back, because it never had it.
Open in SQL Wizard

GuideA Synology NAS as backup storage

For DSM 7 (for example a DS216+II, DS220+, DS920+). The NAS is reached from the internet on port 22, and its firewall lets only SQL Wizard in.

  1. Control PanelShared FolderCreate: for example SQLWizardBackups.
  2. Control PanelUser & GroupCreate: a user such as sqlwizard with a long password, only in the group users; Read/Write on SQLWizardBackups and No access on every other folder; in Application permissions deny everything but SFTP.
  3. Control PanelFile ServicesFTPSFTP: tick Enable SFTP service, port 22.
  4. Give the NAS a fixed address in your network (a DHCP reservation in the router).
  5. Control PanelExternal AccessDDNSAdd: provider Synology and a name such as yourname.synology.me (QuickConnect can’t be used for SFTP).
  6. In the router, forward TCP port 22 from outside to the NAS, port 22. It must be 22 outside: SQL Wizard reaches only standard ports.
  7. Control PanelSecurityFirewall: first allow everything from your own network (for example 192.168.1.0 / 255.255.255.0), then allow TCP 22 from SQL Wizard’s address 91.234.46.58, and deny the rest. SecurityProtection: Enable auto block.
  8. The key, from a Windows PC in the same network (Command Prompt): ssh-keyscan -t ecdsa,ed25519 192.168.1.50 > %TEMP%\nas.txt then ssh-keygen -lf %TEMP%\nas.txt.
  9. In SQL Wizard: Add storage with server yourname.synology.me, port 22, user sqlwizard and folder /SQLWizardBackups; Test, compare the key, Save.
If the router’s internet address is not the one DDNS shows (or starts with 100.64 or 10.), your provider shares one address among customers (CGNAT) and port forwarding can’t work: ask them for a public IP address.
Two disks in RAID 1 (SHR) keep the backups when a disk fails; Hyper Backup can copy the folder to a USB disk or a cloud as well.
Open in SQL Wizard

GuideA QNAP NAS as backup storage

For QTS 5 and QuTS hero. The NAS is reached from the internet on port 22, and only SQL Wizard may connect.

  1. Control PanelShared FoldersCreate: for example SQLWizardBackups.
  2. Control PanelUsersCreate: a user such as sqlwizard with a long password; Read/Write on SQLWizardBackups and Deny on the other folders.
  3. Control PanelNetwork & File ServicesTelnet / SSH: tick Allow SSH connection (port 22) and Enable SFTP; with Edit Access Permission, allow the user sqlwizard (by default only administrators may).
  4. Give the NAS a fixed address in your network (a DHCP reservation in the router).
  5. myQNAPcloudMy DDNS: switch it on and note the name (yourname.myqnapcloud.com).
  6. In the router, forward TCP port 22 from outside to the NAS, port 22.
  7. QuFirewall: allow your own network, allow TCP 22 from SQL Wizard’s address 91.234.46.58, deny the rest. Control PanelSecurityIP Access Protection: protect SSH.
  8. The key, from a Windows PC in the same network: ssh-keyscan -t ecdsa,ed25519 192.168.1.50 > %TEMP%\nas.txt then ssh-keygen -lf %TEMP%\nas.txt.
  9. In SQL Wizard: Add storage with server yourname.myqnapcloud.com, port 22, user sqlwizard and folder /SQLWizardBackups; Test, compare the key, Save.
CGNAT (a shared internet address from your provider) stops port forwarding: ask the provider for a public IP address.
Use an account only for backups, never admin: if its password leaks, only that folder is open.
Open in SQL Wizard

GuideA company SFTP server (Linux)

Any Linux server with OpenSSH. The backup user gets SFTP only, locked into its own folder.

  1. Create the user and its folder: sudo useradd -m -s /usr/sbin/nologin sqlwizard; sudo passwd sqlwizard; sudo mkdir -p /srv/sqlwizard/backups; sudo chown root:root /srv/sqlwizard; sudo chown sqlwizard: /srv/sqlwizard/backups.
  2. In /etc/ssh/sshd_config add: Match User sqlwizard, then ChrootDirectory /srv/sqlwizard, ForceCommand internal-sftp, PasswordAuthentication yes, AllowTcpForwarding no.
  3. sudo systemctl reload ssh (or sshd).
  4. Firewall: allow TCP 22 from SQL Wizard’s address 91.234.46.58, for example sudo ufw allow from 91.234.46.58 to any port 22 proto tcp.
  5. The key: sudo ssh-keygen -lf /etc/ssh/ssh_host_ecdsa_key.pub (and ssh_host_ed25519_key.pub).
  6. In SQL Wizard: Add storage with the server’s name, port 22, user sqlwizard and folder /backups (the folder as the locked-in user sees it); Test, compare the key, Save.
SSH must listen on port 22 where SQL Wizard connects: SQL Wizard reaches only standard ports. A router or firewall in front can forward 22 to another port inside.
Open in SQL Wizard

GuideA company SFTP server (Windows)

Windows Server 2019 or newer, or Windows 10 / 11, with the OpenSSH Server that comes with Windows.

  1. SettingsAppsOptional featuresAdd a feature: OpenSSH Server (or in PowerShell as administrator: Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0).
  2. PowerShell as administrator: Start-Service sshd; Set-Service sshd -StartupType Automatic.
  3. A local user only for backups (for example sqlwizard) and a folder it may write, such as D:\SQLWizardBackups.
  4. In C:\ProgramData\ssh\sshd_config add at the end: Match User sqlwizard, then ChrootDirectory D:\SQLWizardBackups, ForceCommand internal-sftp, AllowTcpForwarding no; then Restart-Service sshd.
  5. Windows Defender Firewall: the rule OpenSSH SSH Server (sshd), ScopeRemote IP address: only SQL Wizard’s address 91.234.46.58.
  6. The key: ssh-keygen -lf C:\ProgramData\ssh\ssh_host_ecdsa_key.pub.
  7. In SQL Wizard: Add storage with the server’s name, port 22, user sqlwizard and folder / ; Test, compare the key, Save.
Open in SQL Wizard

GuideS3 storage: Backblaze B2, Cloudflare R2, Amazon S3, Wasabi

Object storage in the cloud, reached over HTTPS: nothing to set up at home, no port to open. You pay the provider for the space (Backblaze B2 and Cloudflare R2 have a free start).

  1. At the provider: make a bucket (private, not public), for example sql-wizard-backups.
  2. Make a key that may only use that bucket (Backblaze: Application KeysAdd a New Application Key, bucket only, Read and Write; Cloudflare R2: Manage R2 API Tokens, Object Read & Write, this bucket; Amazon: an IAM user with a policy for this bucket only).
  3. Note the endpoint and the region the provider shows for the bucket.
  4. In SQL Wizard: ServerScheduled backupsAdd storageS3-compatible: the endpoint, bucket, region, access key ID and secret access key, and a folder (the start of every file name, e.g. /sql-wizard).
  5. Test, then Save. Then When and what, as for any storage.
  • Backblaze B2: endpoint like s3.eu-central-003.backblazeb2.com, region eu-central-003 (both on the bucket’s page).
  • Cloudflare R2: endpoint <account id>.r2.cloudflarestorage.com, region auto.
  • Amazon S3: endpoint s3.eu-central-1.amazonaws.com, region eu-central-1 (the bucket’s region).
  • Wasabi: endpoint s3.eu-central-1.wasabisys.com, region eu-central-1.
  • MinIO and other S3-compatible services: their address and port, for example minio.example.com:9000, with a valid HTTPS certificate.
SQL Wizard deletes the older copies itself (Copies kept). Lifecycle rules at the provider are not needed; if you add one, keep it longer than your copies.
With object lock or versioning switched on, deleted copies may stay (and cost) at the provider.
Open in SQL Wizard

GuideBackblaze B2, step by step

Backblaze calls things by its own names: what SQL Wizard asks for is spread over the bucket’s page and the key you make. B2 has 10 GB free.

  1. Sign in at backblaze.com → B2 Cloud StorageBucketsCreate a Bucket: a name unique in all of Backblaze (small letters, digits, dashes — for example sqlwizard-yourname-backups), Files in Bucket are: Private, Default Encryption: Enable, Object Lock: DisableCreate a Bucket.
  2. On the bucket’s card note the Endpoint, for example s3.eu-central-003.backblazeb2.com. The region is the part between s3. and .backblazeb2.com: eu-central-003.
  3. On the same card: Lifecycle SettingsKeep only the last version of the file. Otherwise Backblaze keeps the copies SQL Wizard deletes (hidden), and you pay for them.
  4. Application KeysAdd a New Application Key: Name of Key sqlwizard, Allow access to Bucket(s): only this bucket, Type of Access: Read and Write, the rest emptyCreate New Key.
  5. Copy both values at once — Backblaze shows them only now: keyID (like 003a1b2c3d4e5f60000000002) and applicationKey (like K003…).
  6. In SQL Wizard: ServerScheduled backupsAdd storageS3-compatible.
  7. Endpoint: the bucket’s endpoint; Bucket: its name; Region: the part of the endpoint (eu-central-003); Access key ID: the keyID; Secret access key: the applicationKey; Folder in the bucket: for example /sql-wizard.
  8. Test, then Save; choose it under Where in the schedule, then Run now.
“the secret key is not right”: the applicationKey was copied wrong — Backblaze can’t show it again, so make a new key.
“the access key ID is not known there” or “the region is not right”: the keyID, or the region and endpoint don’t belong together (eu-central-003 with s3.eu-central-003…).
“there is no such bucket”: a typo in the bucket’s name. The master application key works too, but a key for this one bucket is safer.
Open in SQL Wizard

GuideWebDAV storage: Nextcloud, ownCloud, a NAS

A folder in Nextcloud, ownCloud or another WebDAV service, reached over HTTPS.

  1. Nextcloud: FilesSettings (bottom left) → WebDAV shows the address, like https://cloud.example.com/remote.php/dav/files/anna/.
  2. Nextcloud: SettingsSecurityDevices & sessionsCreate new app password (name it SQL Wizard): use it instead of your own password — you can take it back alone.
  3. Make a folder for the backups, for example SQL Wizard Backups.
  4. In SQL Wizard: ServerScheduled backupsAdd storageWebDAV: the whole address, the user, the app password, and the folder (/SQL Wizard Backups).
  5. Test, then Save.
A NAS with WebDAV (Synology: the WebDAV Server package; QNAP: Control PanelNetwork & File ServicesWebDAV): it must answer on port 443 with a valid certificate — forward 443 from outside to its WebDAV HTTPS port (Synology 5006) and use a certificate such as Let’s Encrypt (Synology: Control PanelSecurityCertificate). SFTP is often simpler on a NAS.
Some hosting providers give WebDAV space with their packages: their help pages show the address.
Open in SQL Wizard

GuideMy company has an FTP server, not SFTP

The SQL Wizard service can’t send backups over FTP or FTPS: FTP needs random extra ports for every file, and the hosting lets those out blocked; plain FTP also sends passwords unencrypted.

  1. Ask whether the same server can do SFTP as well: many can (Serv-U, Cerberus, CompleteFTP, JSCAPE, Linux and Windows with OpenSSH). Then follow the Linux or Windows guide.
  2. A NAS is often the easiest: Synology and QNAP have SFTP built in.
  3. Or no server at all: an S3 bucket (Backblaze B2, Cloudflare R2, Amazon S3, Wasabi) or a WebDAV folder (Nextcloud) over HTTPS — see their guides.
  4. Your own installation of SQL Wizard (not the service) can copy its backups over FTPS: ServerBackupsCopy to another server.
Open in SQL Wizard

Back up a database on your own server (SQL Wizard accounts)

Owners and admins: ServerBackupsDownload. The backup goes straight to your computer as one .sql.gz file; SQL Wizard keeps no copy, so keep the file safe.

It is checked in your browser before it is saved: it must be complete to the last line, otherwise nothing is saved and the page says why. The file holds what your MySQL login may read.

Your plan sets the largest database.

Open in SQL Wizard

Restore a backup file

DatabaseImport, choose the .sql.gz file. A SQL Wizard backup is recognised: everything in it replaces what the database has now, data included; tables that aren’t in the file stay.

A large file goes in parts, so the server’s upload limit doesn’t matter; if a part fails, the database is only partly restored, so import the file again. A file that was cut off is refused.

Open in SQL Wizard

Back up databases (and check the backup works)

ServerBackups (administrators; also DatabaseOperationsBack up): tick databases and Back up — one compressed file per database is kept on the server, with structure, data, views, routines, triggers and events; InnoDB tables are copied as one moment in time. Verify restores a backup into a temporary database, compares every table’s rows and data and removes the temporary database again — a green “verified” means the backup really works. Download saves the file (it also restores with the mysql command-line client); old backups are removed automatically.

Open in SQL Wizard

Back up automatically

ServerBackupsSchedule (the Schedule toggle in the toolbar shows the card): every day or week at a time, all databases (new ones too) or chosen ones, optionally verified. Saving with automatic backups on creates the backup account if it doesn’t exist — it can read every database and change none.

Then download the task file and run the one command shown (Windows Task Scheduler; a cron line for Linux). The card and HomeStart show the last run, and warn when it failed, didn’t run, or a database hasn’t been backed up for a week.

Open in SQL Wizard

Copy backups to another server automatically

ServerBackupsCopy to another server (its toggle in the toolbar shows the card): SFTP (encrypted, recommended), FTPS (FTP with TLS) or FTP, the server, user, password, a folder and how many backups to keep there. Test connection writes and deletes a small file.

Switched on, every backup — Back up now and scheduled — is copied with its manifest to folder/<database>/; a failed copy keeps the backup here, shows “off-site failed” on it (copy it again with the cloud button) and a warning on HomeStart. For SFTP enter the server key fingerprint so SQL Wizard can tell it is really your server.

Open in SQL Wizard

Restore a backup

ServerBackupsRestore on a backup: into a new database (safe — the original stays, compare first; its events start switched off so a copy doesn’t run them twice) or replace the database (type its name to confirm; the current state is backed up first and listed as “before restore”, so it can be undone). The report shows that every table has the rows and data of the backup.

Open in SQL Wizard

Download all the newest backups

ServerBackupsDownload newest: one ZIP with the newest backup (and its manifest) of every database. Back up now → Verify after backup checks each new backup right away (the choice is remembered).

Open in SQL Wizard

Back up or move data

Server, Database or TableExport / Import (SQL, gzip, ZIP, CSV, JSON).

Open in SQL Wizard

Didn’t find it?

In SQL Wizard, Report a problem reaches us directly — or write to us.