PHPackages                             leolopez/backup - 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. [Database &amp; ORM](/categories/database)
4. /
5. leolopez/backup

ActiveLibrary[Database &amp; ORM](/categories/database)

leolopez/backup
===============

Creates a backup of the database.

1.1.8(4y ago)2258MITPHP

Since Apr 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lopezvleo/backup)[ Packagist](https://packagist.org/packages/leolopez/backup)[ RSS](/packages/leolopez-backup/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (1)Versions (11)Used By (0)

Laravel library to backup the database and upload a copy to OneDrive.
---------------------------------------------------------------------

[](#laravel-library-to-backup-the-database-and-upload-a-copy-to-onedrive)

[![Latest Stable Version](https://camo.githubusercontent.com/cdce37df64c50ced11422aa38b69ead08d5fe8ddf09a87136731c45bc35b12f2/687474703a2f2f706f7365722e707567782e6f72672f6c656f6c6f70657a2f6261636b75702f76)](https://packagist.org/packages/leolopez/backup)[![Total Downloads](https://camo.githubusercontent.com/3765eed2f0b3f578e5f7e29b63bda5f2e352748366d5502d84e7cc9d93ce6650/687474703a2f2f706f7365722e707567782e6f72672f6c656f6c6f70657a2f6261636b75702f646f776e6c6f616473)](https://packagist.org/packages/leolopez/backup)[![Latest Unstable Version](https://camo.githubusercontent.com/1467c350db2eafd2e07c6af1d3cce05f035c1d10444216be7d57a71b016a8b44/687474703a2f2f706f7365722e707567782e6f72672f6c656f6c6f70657a2f6261636b75702f762f756e737461626c65)](https://packagist.org/packages/leolopez/backup)[![License](https://camo.githubusercontent.com/812e0c23407e45ef7ab0bd2e28c1289ca5c0c22d6ec1e02f8439d60ff6838fd1/687474703a2f2f706f7365722e707567782e6f72672f6c656f6c6f70657a2f6261636b75702f6c6963656e7365)](https://packagist.org/packages/leolopez/backup)[![PHP Version Require](https://camo.githubusercontent.com/9614fb397bd019fdda97ddbd7d2962b27ee7cd69de179676c7d7ec5236fd3eaa/687474703a2f2f706f7365722e707567782e6f72672f6c656f6c6f70657a2f6261636b75702f726571756972652f706870)](https://packagist.org/packages/leolopez/backup)

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

[](#installation)

Install the package by the following command,

```
composer require leolopez/backup

```

Register the Service Provider
-----------------------------

[](#register-the-service-provider)

Add the provider in `config/app.php` int `providers` section.

```
Leolopez\Backup\BackupServiceProvider::class

```

Add Facade
----------

[](#add-facade)

Add the Facade to your `config/app.php` into `aliases` section,

```
'Backup' => \Leolopez\Backup\Facades\Backup::class,

```

Publish the Assets
------------------

[](#publish-the-assets)

Run the following command to publish config file,

```
php artisan vendor:publish --provider="Leolopez\Backup\BackupServiceProvider"

```

Register your credentials
-------------------------

[](#register-your-credentials)

Add the credentials of your microsoft account into `.env` file.

```
TENANT_ID='-----'
CLIENT_ID='-----'
CLIENT_SECRET='-----'
USERNAME='-----'
PASSWORD='-----'

```

Register the crontab
--------------------

[](#register-the-crontab)

Run the task every day at 1am.

```
crontab -e

0 1 * * * /usr/bin/php /var/www/html/project/artisan backup:create

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

10

Last Release

1468d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49a4e7008c35b29fb50504a2c0c41f80981eb096ef29b18f6d6db63529e087c1?d=identicon)[leolopez](/maintainers/leolopez)

---

Top Contributors

[![lopezvleo](https://avatars.githubusercontent.com/u/92056647?v=4)](https://github.com/lopezvleo "lopezvleo (22 commits)")

### Embed Badge

![Health badge](/badges/leolopez-backup/health.svg)

```
[![Health](https://phpackages.com/badges/leolopez-backup/health.svg)](https://phpackages.com/packages/leolopez-backup)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
