PHPackages                             barygi/phpbu-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. barygi/phpbu-laravel

ActiveLibrary

barygi/phpbu-laravel
====================

Laravel backup package - integrates phpbu with the laravel artisan command line tool

4.0.1(5y ago)043MITPHP

Since Jun 21Pushed 5y agoCompare

[ Source](https://github.com/barygi/phpbu-laravel)[ Packagist](https://packagist.org/packages/barygi/phpbu-laravel)[ Docs](http://phpbu.de/)[ RSS](/packages/barygi-phpbu-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (16)Used By (0)

phpbu-laravel
=============

[](#phpbu-laravel)

Laravel backup package - integrates [phpbu](https://github.com/sebastianfeldmann/phpbu) with the laravel artisan command line tool.

A more detailed documentation can be found in the phpbu [manual](http://phpbu.de/manual/current/en/integrations.html).

[![Latest Stable Version](https://camo.githubusercontent.com/e2b36fae9b642577acdf90d72f0390a94312c926b4bd3dc9904e25d13b0d6218/68747470733a2f2f706f7365722e707567782e6f72672f70687062752f70687062752d6c61726176656c2f762f737461626c652e737667)](https://packagist.org/packages/phpbu/phpbu-laravel)[![License](https://camo.githubusercontent.com/b03ed0f878dfa37920a73cf869800ec2f1350cc7e0417d23facd1b10e9a4fae1/68747470733a2f2f706f7365722e707567782e6f72672f70687062752f70687062752d6c61726176656c2f6c6963656e73652e737667)](https://packagist.org/packages/phpbu/phpbu-laravel)[![Build Status](https://camo.githubusercontent.com/bebdb1ed8a5e04d4fd2819526b96caac3db3936f29dc634f429c019ff2e919d1/68747470733a2f2f7472617669732d63692e6f72672f73656261737469616e66656c646d616e6e2f70687062752d6c61726176656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sebastianfeldmann/phpbu-laravel)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/928af13465f943424efc51d15e41a9205805b113cfcb58b22d0e2b22c985bca6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73656261737469616e66656c646d616e6e2f70687062752d6c61726176656c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sebastianfeldmann/phpbu-laravel/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/36b7d6b5fd6857385afc96fddf0b98a24911f50499fd3b6586c946012038f2ad/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73656261737469616e66656c646d616e6e2f70687062752d6c61726176656c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sebastianfeldmann/phpbu-laravel/?branch=master)

Features
--------

[](#features)

- Creating backups
    - Directories
    - MySQL
- Validate backups
    - Check min size
    - Comparing with previous backups
- Sync backups to other locations
    - All Laravel filesystems
- Cleanup your backup location
    - Delete backups older x
    - Store only x MB of backups
    - Keep only last x backups

Requirements
------------

[](#requirements)

- PHP 7.0
- Laravel 5.\*
- phpbu 5.\*
- see [phpbu](https://github.com/sebastianfeldmann/phpbu) requirements for more details

Installation
------------

[](#installation)

Use composer to install the package.

```
composer require phpbu/phpbu-laravel
```

Add the package ServiceProvider to your `config/app.php` configuration file.

```
'providers' => [
    ...
    /*
     * phpbu Backup Service Providers...
     */
    phpbu\Laravel\ServiceProvider::class,
];
```

Finally create a configuration skeleton by publishing the package.

```
php artisan vendor:publish --provider="phpbu\Laravel\ServiceProvider"
```

Configuration
-------------

[](#configuration)

After publishing the `ServiceProvider` a `phpbu.php` configuration file is created in your `config` directory.

```
