It reads your web server and finds the sites itself
TarballVault scans the nginx and Apache virtual hosts, works out what each site is, and reads the database settings from the application's own config. A newly found site waits, switched off, until you have looked at it, so nothing is backed up before you choose its settings.
Laravel
artisan + .envMySQL, MariaDB, PostgreSQL or SQLite, read from DB_* or DB_URL.
Drupal
core/lib/Drupal.phpEvery sites/*/settings.php, multisite included, read as the file's owner and never as root.
WordPress
wp-config.phpDB_NAME, DB_USER, DB_PASSWORD and DB_HOST.
Anything else
other PHP or staticFiles only, and you can add a database by hand on the site's page.
A site that disappears from the web server config is marked Missing, and its backups are kept.
What happens while you sleep
Root's scheduler starts the run at the time you set. The web interface can only queue requests and read the records, so it never runs a backup itself.
- RescanNew, changed and missing sites are picked up before anything is copied.
- Dump each database
mysqldump,pg_dumpor a consistent SQLite.backup. Passwords go through a temporary file only root can read, never on the command line. - Archive the filesThe application folder as a
.tar.gz, leaving outnode_modules, caches, sessions and compiled views. - EncryptWith encryption on, every archive is encrypted to your gpg public key. If the key doesn't work, the run uploads nothing.
- Upload and checkEach archive goes to your bucket with its SHA-256, and a run manifest records what was made.
- Prune and reportOld snapshots beyond your retention are deleted. A failed or partial run emails you.
Seven days, four weeks, six months
For each site, TarballVault keeps the newest good backup of each of the last 7 days, the newest of each of the last 4 weeks, and the newest of each of the last 6 months. Only successful backups count, so if a site starts failing its last good snapshots stay in the weekly and monthly slots.
All three numbers can be changed. Everything outside them is deleted from the bucket, so you only pay to store what you would actually restore.
Two ways back, both from the browser
Pick a snapshot, choose the databases, the files or both, and decide whether the live site is touched.
Look before you swap
The live site is left alone. The files land next to the original with owners and permissions kept, and each database goes into a new database the application's own user can read.
Use it to pull back a single record, or to check a snapshot before you trust it.
Put it back the way it was
Asks for your password, a fresh authenticator code and the site's name typed in. Then, in order:
- Checks every archive's SHA-256 and trial-loads each database. If anything is wrong it stops with nothing changed.
- Takes a safety backup of the site as it is now.
- Puts the site into maintenance mode.
- Replaces the databases and swaps the folder, keeping the replaced one for 7 days.
- Clears caches and brings the site back.
Encrypted snapshot? Paste the private key into the restore form. It is used in a throwaway keyring that is deleted when the restore ends, so the key never has to live on the server.
Built for the server that holds everything
Two-factor for everyone
Every account sets up an authenticator app before it can do anything else. Passkeys are supported too.
Your keys, your bucket
Turn on encryption and archives are encrypted on the server with your public key. The private key stays with you, so a leaked bucket gives nothing away.
Short-lived downloads
Download links are pre-signed and expire after 10 minutes. Every download is logged.
A web page that can't run root
The interface only queues requests. Root's worker carries them out, and an added site must sit inside the folders you allow.
Readable without us
Plain .sql.gz and .tar.gz files plus a manifest per run. If this server is lost, the bucket still makes sense on its own.
A health page that tells you
Storage, scheduler, dump tools, disk space, alerts and two-factor are checked, and anything not green comes with the steps to fix it.
Any S3-compatible bucket
Use an access key that can only reach that one bucket. Several servers can share a bucket, each in its own folder.
# on the server, as root sudo ./install.sh --url=https://backups.example.com \ [email protected] ✓ PHP, extensions and dump tools checked ✓ database created and migrated ✓ /etc/cron.d/tarballvault added ✓ first account created ✓ virtual hosts scanned: 3 applications found
- Linux with root access, PHP 8.4 and Composer
tar,gzipand the dump tools for your databases;gpgfor encryption- Updates arrive as approved releases you deploy with one button