PHPackages                             sprint-digital/sprint-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. sprint-digital/sprint-backup

ActiveLibrary

sprint-digital/sprint-backup
============================

This is my package sprint-backup

12.0.1(1y ago)1948[1 PRs](https://github.com/sprint-digital/sprint-backup/pulls)MITPHPPHP ^8.2

Since Feb 21Pushed 1y ago2 watchersCompare

[ Source](https://github.com/sprint-digital/sprint-backup)[ Packagist](https://packagist.org/packages/sprint-digital/sprint-backup)[ Docs](https://github.com/sprint-digital/sprint-backup)[ GitHub Sponsors](https://github.com/sprint-digital)[ RSS](/packages/sprint-digital-sprint-backup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (16)Used By (0)

Sprint backup - LARAVEL v10+ ONLY
=================================

[](#sprint-backup---laravel-v10-only)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3edcbbac52d7f501179cacc4d5427cc802f926e239f1c1ef225bc802df218a9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737072696e742d6469676974616c2f737072696e742d6261636b75702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sprint-digital/sprint-backup)[![GitHub Tests Action Status](https://camo.githubusercontent.com/157f53043055582521df492cd92d9d7f6972f8f18c35e2bc6473ce5e3da5ef76/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737072696e742d6469676974616c2f737072696e742d6261636b75702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/sprint-digital/sprint-backup/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6334cc4ffbb2b0d5eaaaf88b06515192b39d2b000262cf422485e51ef2117212/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737072696e742d6469676974616c2f737072696e742d6261636b75702f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/sprint-digital/sprint-backup/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/7206d26ff59383df3809a4ec46d0ef0521298cc6b8d0040d4db5f85785c4cc57/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737072696e742d6469676974616c2f737072696e742d6261636b75702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sprint-digital/sprint-backup)

Back up and secure database to AWS S3. Then redistribute the backup to other team environments.

DO NOT SKIP THIS STEP!!! please read AWS setup [HERE](https://sprintdigital.atlassian.net/l/cp/kr9F1uHP).

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

[](#installation)

You can install the package via composer:

```
composer require sprint-digital/sprint-backup
```

Add environment variables to your `.env` file:

```
BACKUP_AWS_ACCESS_KEY_ID=
BACKUP_AWS_SECRET_ACCESS_KEY=
BACKUP_AWS_DEFAULT_REGION=ap-southeast-2
BACKUP_AWS_BUCKET=sprint-db-bucket
BACKUP_AWS_USE_PATH_STYLE_ENDPOINT=false
BACKUP_ARCHIVE_PASSWORD="{zipSecret}"
BACKUP_AWS_PATH="{repoName}"
BACKUP_MASTER_PASSWORD="{userPassword}"
```

Add the following to your `config/filesystems.php` in `disks` array:

```
's3-backup' => [
    'driver' => 's3',
    'key' => env('BACKUP_AWS_ACCESS_KEY_ID'),
    'secret' => env('BACKUP_AWS_SECRET_ACCESS_KEY'),
    'region' => env('BACKUP_AWS_DEFAULT_REGION'),
    'bucket' => env('BACKUP_AWS_BUCKET'),
    'url' => env('BACKUP_AWS_URL') . '/' . env('BACKUP_AWS_PATH'),
    'endpoint' => env('BACKUP_AWS_ENDPOINT'),
    'use_path_style_endpoint' => env('BACKUP_AWS_USE_PATH_STYLE_ENDPOINT', false),
    'throw' => false,
],
```

You can publish the config file with:

```
php artisan backup:install
```

Backup database:

```
php artisan backup:to-sprint
```

Restore database:

```
php artisan backup:restore
# or auto run the last backup
php artisan backup:restore --last-backup
```

In some cases the .sql file is too large to be restored. You need to increase the memory limit in your `php.ini` file.

Production / Staging
--------------------

[](#production--staging)

You might have to install mysql on your server. (ie. worker servers)

```
sudo apt-get install -y default-mysql-client
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Hoang Ho](https://github.com/na)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance50

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 91.9% 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 ~38 days

Recently: every ~102 days

Total

12

Last Release

394d ago

Major Versions

v1.0.0.2 → v8.0.12024-02-27

v8.0.2 → v10.0.12024-02-28

v8.0.4 → v10.0.22024-02-28

v10.0.3 → 11.0.12024-04-12

11.0.1 → 12.0.12025-04-10

PHP version history (3 changes)v1.0.0.1PHP ^8.1

v8.0.1PHP ^7.4

v10.0.3PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6eda370e061b4a2d160b8cce362c178289a2e24c80f24359be5420f8906d2572?d=identicon)[hoangho](/maintainers/hoangho)

---

Top Contributors

[![hoangnhiho](https://avatars.githubusercontent.com/u/8406758?v=4)](https://github.com/hoangnhiho "hoangnhiho (34 commits)")[![Doehnert](https://avatars.githubusercontent.com/u/23267659?v=4)](https://github.com/Doehnert "Doehnert (3 commits)")

---

Tags

laravelsprint-digitalsprint-backup

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

203330.1k2](/packages/wnx-laravel-backup-restore)[mozex/laravel-scout-bulk-actions

A Laravel Scout extension for bulk importing and flushing of all models.

1033.4k](/packages/mozex-laravel-scout-bulk-actions)

PHPackages © 2026

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