sebastianfeldmann / Phpbu

Licence: other
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

Projects that are alternatives of or similar to Phpbu

Git S3 Push
Deploy your git repo to an S3 bucket
Stars: ✭ 182 (-84.13%)
Mutual labels:  hacktoberfest, backup
Dumpling
Dumpling is a fast, easy-to-use tool written by Go for dumping data from the database(MySQL, TiDB...) to local/cloud(S3, GCP...) in multifarious formats(SQL, CSV...).
Stars: ✭ 134 (-88.32%)
Mutual labels:  hacktoberfest, backup
S3cmd
Official s3cmd repo -- Command line tool for managing Amazon S3 and CloudFront services
Stars: ✭ 3,767 (+228.42%)
Mutual labels:  hacktoberfest, backup
Knoxite
A data storage & backup system
Stars: ✭ 165 (-85.61%)
Mutual labels:  hacktoberfest, backup
Django Dbbackup
Management commands to help backup and restore your project database and media files
Stars: ✭ 471 (-58.94%)
Mutual labels:  hacktoberfest, backup
Vee Validate
✅ Form Validation for Vue.js
Stars: ✭ 8,820 (+668.96%)
Mutual labels:  hacktoberfest
Mose
Post exploitation tool for configuration management servers.
Stars: ✭ 67 (-94.16%)
Mutual labels:  hacktoberfest
Typeresolver
A PSR-5 based resolver of Class names, Types and Structural Element Names
Stars: ✭ 8,712 (+659.55%)
Mutual labels:  hacktoberfest
Polybar
A fast and easy-to-use status bar
Stars: ✭ 9,604 (+737.31%)
Mutual labels:  hacktoberfest
Op Desafios
Soluções para os desafios (por usuário)
Stars: ✭ 66 (-94.25%)
Mutual labels:  hacktoberfest
Blue App Iota
IOTA wallet application for Ledger Blue and Nano S
Stars: ✭ 67 (-94.16%)
Mutual labels:  hacktoberfest
Rsyslog
Development repository for the rsyslog cookbook
Stars: ✭ 66 (-94.25%)
Mutual labels:  hacktoberfest
Cakephp
CakePHP: The Rapid Development Framework for PHP - Official Repository
Stars: ✭ 8,453 (+636.97%)
Mutual labels:  hacktoberfest
Action Shopify
Deploy Shopify theme with Theme Kit on GitHub Actions
Stars: ✭ 67 (-94.16%)
Mutual labels:  hacktoberfest
Zaproxy
The OWASP ZAP core project
Stars: ✭ 9,078 (+691.46%)
Mutual labels:  hacktoberfest
Openapi Spring Webflux Validator
🌱 A friendly kotlin library to validate API endpoints using an OpenApi 3.0 and Swagger 2.0 specification
Stars: ✭ 67 (-94.16%)
Mutual labels:  hacktoberfest
Falcon
The no-nonsense REST API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
Stars: ✭ 8,654 (+654.49%)
Mutual labels:  hacktoberfest
Slash
The Slash testing infrastructure
Stars: ✭ 66 (-94.25%)
Mutual labels:  hacktoberfest
Aws C Http
C99 implementation of the HTTP/1.1 and HTTP/2 specifications
Stars: ✭ 67 (-94.16%)
Mutual labels:  hacktoberfest
Mobileautomationframework
Single code base framework to test android and iOS app using appium (v6.1.0), maven, testng,java. Option to start appium server programmatically.
Stars: ✭ 66 (-94.25%)
Mutual labels:  hacktoberfest

PHPBU

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.

Latest Stable Version Minimum PHP Version Downloads License Build Status Scrutinizer Code Quality Code Coverage PHP Website

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
    • OpenStack
    • rsync
    • SFTP
    • Softlayer
    • Yandex Disk
  • 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
    • Mail
    • 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:

  <?xml version="1.0" encoding="UTF-8"?>
  <phpbu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpbu.de/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>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].