https://github.com/robertsaupe/phpbat
a PHP based Backup & Admin Tool
https://github.com/robertsaupe/phpbat
backup backups encrypted-backups encryption ftp ftps gz mysqldump php php-cli php8 rsync sftp tar update
Last synced: 11 months ago
JSON representation
a PHP based Backup & Admin Tool
- Host: GitHub
- URL: https://github.com/robertsaupe/phpbat
- Owner: robertsaupe
- License: mit
- Created: 2021-02-14T10:14:27.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T11:08:21.000Z (almost 2 years ago)
- Last Synced: 2025-01-14T12:26:44.538Z (about 1 year ago)
- Topics: backup, backups, encrypted-backups, encryption, ftp, ftps, gz, mysqldump, php, php-cli, php8, rsync, sftp, tar, update
- Language: PHP
- Homepage: https://robertsaupe.de
- Size: 1.69 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# phpBAT - a PHP based Backup & Admin Tool
[](https://packagist.org/packages/robertsaupe/phpbat)
[](https://packagist.org/packages/robertsaupe/phpbat)
[](https://packagist.org/packages/robertsaupe/phpbat)
[](LICENSE)

```diff
-! WORK IN PROGRESS !-
!- The development of the version 3 (phar) is at a very early stage.
!- Neither tests nor feedback are currently useful.
!- As soon as the situation changes, I will inform you.
The specifications for version 3 are still in the concept phase.
Below you will find the readme for the old version 2.
```
[Supporting](https://github.com/robertsaupe/phpbat#supporting) |
[Features](https://github.com/robertsaupe/phpbat#features) |
[License](https://github.com/robertsaupe/phpbat#license) |
[Requirements](https://github.com/robertsaupe/phpbat#requirements) |
[Installing](https://github.com/robertsaupe/phpbat#installing) |
[Getting started](https://github.com/robertsaupe/phpbat#getting-started) |
[Credits](https://github.com/robertsaupe/phpbat#credits) |
[Changelog](https://github.com/robertsaupe/phpbat#changelog) |
[History](https://github.com/robertsaupe/phpbat#history)
## Supporting
[GitHub](https://github.com/sponsors/robertsaupe) |
[Patreon](https://www.patreon.com/robertsaupe) |
[PayPal](https://www.paypal.com/donate?hosted_button_id=SQMRNY8YVPCZQ) |
[Amazon](https://www.amazon.de/ref=as_li_ss_tl?ie=UTF8&linkCode=ll2&tag=robertsaupe-21&linkId=b79bc86cee906816af515980cb1db95e&language=de_DE)
## Features
- full server backups
- server updates
- server cleanup
- backup individual folders to archive (tar, tar.gz)
- dump mysql/mariadb
- access rights adjustment (chmod)
- delete old backups and logs
- compression (optional)
- encrypt and decrypt backups (optional)
- synchronisation/replication from or to rsync/ftp/ftps/sftp
- logging (with levels) by output, log-file and mail
- automatic selfupdates
- custom and easy configuration
## License
This software is distributed under the MIT license. Please read [LICENSE](LICENSE) for information.
## Requirements
- PHP 8.0.0 or higher
- fully supported OS: Debian, Rasbian, Ubuntu, Arch, Manjaro
- partially supported: other Linux, Mac OS, Windows
- complete requirements documented in [Configuration.Default.jsonc](Configuration.Default.jsonc)
## Installing
download latest [Release](https://github.com/robertsaupe/phpbat/releases)
```bash
tar xvz -f x.x.x.tar.gz
rm x.x.x.tar.gz
```
## Getting started
copy [Configuration.Default.jsonc](Configuration.Default.jsonc) to Configuration.jsonc and editing it.
using php-cli
```bash
php phpBAT.php
```
using cron: daily
```bash
crontab -e
0 2 * * * php /root/phpbat/phpBAT.php -cron
```
using php-cli: decrypt all encrypted backups
```bash
php phpBAT.php -d
```
using php-cli: decrypt a encrypted backup-file
```bash
php phpBAT.php -df file.enc
```
## Credits
-
-
-
-
-
## Changelog
See [CHANGELOG](CHANGELOG.md).
## History
- originally written in 2018 as a private tool for my server
- complete rewritten (2.x) and published in 2021 on github