PHPBU creates, compresses, encrypts, and validates backups for databases and directories, then syncs them to remote servers or cloud storage from XML or JSON config.
Overview
PHPBU is a PHP-based backup utility that orchestrates creation, protection, and distribution of backups from configuration files. It can target MySQL, PostgreSQL, MongoDB, Redis, Elasticsearch, InfluxDB, ArangoDB, LDAP, directories, and Percona XtraBackup among its source types.
After backup creation it supports compression with bzip2, gzip, xz, or zip, validation such as minimum size checks and comparison with prior runs, and encryption via mcrypt or openssl. Sync adapters push copies to Amazon S3, Azure Blob, Dropbox, FTP, Google Drive, Google Cloud Storage, OpenStack, rsync, SFTP, Softlayer, and similar destinations.
Local retention rules can delete backups older than a threshold, cap total megabytes stored, keep only the latest N copies, or apply tiered retention over time. Reporting can write text or JSON logs, send mail, expose Prometheus metrics, post to Telegram, or call webhooks. Runs support dry simulation, partial job limits, and restore guidance via CLI flags.
Distribution is primarily through a single PHAR archive, PHIVE, or Composer, requiring PHP with curl, dom, json, spl extensions plus POSIX shell, tar, and gzip or bzip2 on the host.
Key features
- Multi-database backup sources
- Compression and encryption
- Cloud and remote sync targets
- Backup validation rules
- Local cleanup and retention
- XML or JSON configuration
- Reporting and monitoring hooks
- Simulate and restore CLI modes
Use cases
- Scheduled database backups
- Offsite backup replication
- Encrypted backup archives
- Backup size monitoring
- PHP cron backup jobs
Does the same job as
PHPBU doesn't name these products itself, but its own description shows it does the same job.