sebastianfeldmann/phpbu has 1,303 GitHub stars and 110 forks. GitHot measured -1 stars in 24 hours and -1 in 7 days. Last checked 2026-11-13 02:08 UTC. Last push 2026-07-03.
Comment ces chiffres sont mesurés
PHP Backup Utility - Creates and encrypts database and file backups, syncs your backups to other servers or cloud services and assists you monitor your backup process
What you can do
- Percona XtraBackup
- Comparing with previous backups
- Google Cloud Storage
- Delete backups older x
Progression mesurée des étoiles
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalPHPBU
PHP Backup Utility
PHPBU is a php tool that creates and encrypts backups, syncs your backups to other servers or cloud services and assists you monitor your backup creation.
Get an in depth look into all the features and a short 'getting started' tutorial at the PHPBU Website.
If you are not using php 8.1 or greater already you can still use phpbu version 6.0.30
If you are not using php 8.0 or greater already you can still use phpbu version 6.0.20
If you are not using php 7.2 or greater already you can still use phpbu version 5.2.10
If you are behind php 7.0 you can still use phpbu version 4.0.10
Features
- Creating backups
- ArangoDB
- Directories
- Elasticsearch
- InfluxDB
- Ldap
- MongoDB
- MySQL
- Percona XtraBackup
- PostgreSQL
- Redis
- Compress backups
- bzip2
- gzip
- xz
- zip
- Validate backups
- Check min size
- Comparing with previous backups
- Encrypting backups
- mcrypt
- openssl
- Sync backups to other locations
- Amazon s3
- Azure Blob
- Dropbox
- FTP
- Google Drive
- Google Cloud Storage
- OpenStack
- rsync
- SFTP
- Softlayer
- Cleanup your local backup
- Delete backups older x
- Store only x MB of backups
- Keep only last x backups
- Keep less backups for more distant past
- Writing backup reports
- Text file
- Json file
- Prometheus
- Telegram
- Webhook
Requirements
- PHP >= 7.2
- ext/curl
- ext/dom
- ext/json
- ext/spl
- POSIX Shell
- tar
- bzip2 or gzip
Installation
You can download a PHP Archive (PHAR) that bundles everything you need to run PHPBU in a single file.
wget https://phar.phpbu.de/phpbu.phar
chmod +x phpbu.phar
php phpbu.phar --version
For convenience, you can move the PHAR to a directory that is in your PATH.
mv phpbu.phar /usr/local/bin/phpbu
phpbu --version
Using PHIVE to install PHPBU.
phive install phpbu
Installing PHPBU via Composer is also supported.
"require": {
"phpbu/phpbu": "^6.0"
}
Usage
phpbu [option]
--bootstrap=<file> A "bootstrap" PHP file that is included before the backup.
--configuration=<file> A phpbu xml config file.
--colors Use colors in output.
--debug Display debugging information during backup generation.
--generate-configuration Create a new configuration skeleton.
--limit=<subset> Limit backup execution to a subset.
--simulate Perform a trial run with no changes made.
--restore Print a restore guide.
-h, --help Print this usage information.
-v, --verbose Output more verbose information.
-V, --version Output version information and exit.
Usage Examples
$ phpbu
This requires a valid XML PHPBU configuration file (phpbu.xml or phpbu.xml.dist) in your current working directory. Alternatively, you can specify the path to your configuration file. An important thing to note is that all path inside the configuration should be absolute or relative to the configuration file itself.
$ phpbu --configuration=backup/config.xml
Use the --limit option to execute only a subset of your configured backups.
$ phpbu --limit=myAppDB
A dry run without any actual impact is executed with the --simulate option.
$ phpbu --simulate
To show a guide how to restore your backup use the --restore option.
$ phpbu --restore
Configuration Example
Simple configuration example in XML:
<?xml version="1.0" encoding="UTF-8"?>
<phpbu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://www.phpbu.de/schema/6.0/phpbu.xsd"
verbose="true">
<backups>
<backup name="myAppDB">
<!-- source -->
<source type="mysqldump">
<option name="databases" value="mydbname"/>
<option name="user" value="user.name"/>
<option name="password" value="topsecret"/>
</source>
<!-- where should the backup be stored -->
<target dirname="backup/mysql"
filename="mysqldump-%Y%m%d-%H%i.sql"
compress="bzip2"/>
</backup>
</backups>
</phpbu>
Simple configuration example in JSON:
{
"verbose":true,
"backups":[
{
"name":"myAppDB",
"source":{
"type":"mysqldump",
"options":{
"databases":"mydbname",
"user":"user.name",
"password":"topsecret"
}
},
"target":{
"dirname":"backup",
"filename":"mysql-%Y%m%d-%H%i.sql",
"compress":"bzip2"
}
}
]
}
Explorer des projets similaires
Asabeneh/30-Days-Of-Python
Le défi de programmation 30 Days of Python est un guide pas à pas pour apprendre le langage de programmation Python en 30 jours. Ce défi peut prendre plus de 100 jours. Avancez à votre rythme. Ces vidéos peuvent aussi vous aider : https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,618 étoilesgrafana/grafana
Plateforme ouverte et composable d’observabilité et de visualisation de données. Visualise les métriques, les journaux et les traces issus de plusieurs sources, comme Prometheus, Loki, Elasticsearch, InfluxDB, Postgres et bien d’autres.
77,859 étoilesredis/redis
Pour les développeurs qui créent des applications en temps réel pilotées par les données, Redis est le cache, le serveur de structures de données et le moteur de requêtes documentaires et vectorielles préféré, le plus rapide et le plus riche en fonctionnalités.
77,472 étoilesapache/superset
Apache Superset est une plateforme de visualisation et d'exploration de données.
75,495 étoiles
