Open Source CLI Tool

Database Backups
Made Simple

A powerful command-line utility for backing up and restoring PostgreSQL, MySQL, MongoDB, and SQLite databases with compression support.

# Install with Go
go install github.com/AdityaNarayan29/masstDB@latest

Why MasstDB?

Everything you need for database backup management

📦

Automatic Compression

Backups are gzip compressed by default, saving up to 70% storage space.

Fast & Efficient

Uses native database tools for maximum performance and reliability.

🖥

Cross-Platform

Works on macOS, Linux, and Windows with a single binary.

🔒

Secure

Credentials stay local. No data sent to external servers.

📝

Detailed Logging

Track backup activities with timestamps, sizes, and durations.

🛠

Easy to Use

Simple CLI commands with helpful flags and documentation.

Supported Databases

Backup any of these databases with a single command

🐘

PostgreSQL

pg_dump / psql

🐬

MySQL

mysqldump / mysql

🍃

MongoDB

mongodump / mongorestore

🗃

SQLite

sqlite3 .dump

Simple Commands

Get started in seconds with intuitive CLI commands

$ masstdb backup --type postgres --database mydb
[INFO] Starting backup process...
[INFO] Connection successful!
[INFO] Backup completed successfully!
[INFO]   File: backups/mydb_full_20260130.sql.gz
[INFO]   Size: 2.4 MB
[INFO]   Duration: 1.2s
$ masstdb list
NAME                            SIZE    CREATED
----                            ----    -------
mydb_full_20260130.sql.gz   2.4 MB  2026-01-30
mydb_full_20260129.sql.gz   2.3 MB  2026-01-29

Total: 2 backup(s)
$ masstdb restore --type postgres --database mydb --file backup.sql.gz
[INFO] Starting restore process...
[INFO] Connection successful!
[INFO] Restoring from: backup.sql.gz
[INFO] Restore completed successfully!
[INFO]   Duration: 3.4s
$ masstdb test --type postgres --host localhost --database mydb
[INFO] Testing connection to postgres...
[INFO] Connection successful!

Ready to simplify your backups?

MasstDB is free, open-source, and ready to use.