PGStash CLI
Backups that run, leave the server and restore.
After payment you get an email with your download link within a few minutes. The link is valid for 7 days.
Digital goods. If a tool doesn't work as described, we fix it or refund you — see Terms.
Key features
- Every archive is test-restored before upload — a broken backup never replaces a good one
- Retention keeps 7 daily, 4 weekly and 12 monthly copies
- Alerts go to Slack, Discord or Telegram
requirements.txt — boto3, cryptography
What's in the ZIP
- README.md — up and running in under a minute
- main.py — complete, readable source code
- requirements.txt — boto3, cryptography
Why PyForge: Ready-made tools with full source code.
More details
Backups that run, leave the server and restore. PGStash backs up PostgreSQL, MySQL and SQLite, encrypts each dump on your machine (AES-256-GCM) and uploads to S3-compatible storage. - Every archive is test-restored before upload — a broken backup never replaces a good one - Retention keeps 7 daily, 4 weekly and 12 monthly copies - Alerts go to Slack, Discord or Telegram Runs with: Python 3 + boto3 and cryptography, plus the pg_dump/mysqldump client.
pip install -r requirements.txt
# Encrypted PostgreSQL backup to S3, verified before upload, old copies pruned
python main.py backup --db-type postgres --db-name app --db-user app \
--s3-bucket my-backups --encryption-key "$PASSPHRASE" --prune
python main.py doctor # check boto3, cryptography, pg_dump and mysqldumpQuick Start
Runs on Python 3.9 or newer. It needs these packages: boto3, cryptography. Install them first with pip install -r requirements.txt.
1 — Install the dependencies
pip install -r requirements.txt2 — Run it
python main.py --helpHow agents & programs use it: Install its requirements in a virtual environment; scripts and AI agents can then run it as a subprocess.
Why developers buy from PyForge
- Save hours: ready-made, tested tools. Skip writing, debugging and maintaining it yourself.
- Ready in minutes: one file, drop it in your project and run it.
- Mostly zero-dependency: no pip install chains, no supply-chain risk.
- Full source code: readable, auditable, yours to modify.
- Runs locally and offline: no account, no API key, no data leaves your machine.
- Pay once, own it: no subscription.
- Tested before release: every tool is checked before it goes on sale.
All-Access Pass
Get every PyForge tool with the All-Access Pass
49 tools today plus every future release, lifetime commercial license, one payment of $99.
This tool: $49 · All 49 tools: $99
See the All-Access Pass