PHPackages                             productshake/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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. productshake/backup

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

productshake/backup
===================

Pre-configured Laravel backup solution with Dropbox integration

1.0.7(11mo ago)126MITPHPPHP ^8.2

Since May 30Pushed 11mo agoCompare

[ Source](https://github.com/ProductShake/dropbox-backup)[ Packagist](https://packagist.org/packages/productshake/backup)[ RSS](/packages/productshake-backup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

Laravel Backup Package
======================

[](#laravel-backup-package)

A pre-configured Laravel backup solution with Dropbox integration, built on top of [spatie/laravel-backup](https://github.com/spatie/laravel-backup).

Features
--------

[](#features)

- Automatic Dropbox integration with token refresh
- Pre-configured backup settings
- Slack notifications
- Zero configuration needed in your Laravel project
- Automatic service provider registration
- Automatic task scheduling

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

[](#requirements)

- PHP 8.2 or higher
- Laravel 11.x
- Dropbox account with API access

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

[](#installation)

1. Add the following environment variables to your `.env` file:

```
# REQUIRED ENVIRONMENT VARIABLES #
# MAKE SURE TO ADD THESE VARIABLES TO YOUR .env FILE BEFORE PROCEEDING #

SLACK_BOT_USER_OAUTH_TOKEN=""                                                               # Required - for Slack notifications
HEALTH_SLACK_WEBHOOK_URL="your_webhook_url"                                                 # Optional - for Slack notifications
SLACK_BOT_USER_DEFAULT_CHANNEL="#general"

BACKUP_DIRECTORY_NAME="backups"                                                             # Directory name in Dropbox
BACKUP_PREFIX_NAME="your_site_name"                                                         # Prefix for backup files (e.g., "mysite")
BACKUP_MYSQL_DUMP="/usr/bin/"                                                               # Path to MySQL dump binary

DROPBOX_KEY="your_key"                                                                      # Dropbox app key
DROPBOX_SECRET="your_secret"                                                                # Dropbox app secret
DROPBOX_AUTH_TOKEN="your_token"                                                             # Dropbox OAuth token
DROPBOX_REFRESH_TOKEN="your_refresh_token"                                                  # Dropbox refresh token
DROPBOX_TOKEN_URL="https://${DROPBOX_KEY}:${DROPBOX_SECRET}@api.dropbox.com/oauth2/token"

BACKUP_NOTIFICATION_EMAIL=hi@productshake.com                                               # Optional - for email notifications
```

2. Install the package via Composer:

```
composer require productshake/backup
```

That's it! The package will automatically:

- Configure the Dropbox filesystem driver
- Set up backup settings
- Handle token refresh
- Configure notifications
- Schedule backup tasks:
    - Daily backup at 01:00
    - Clean old backups at 02:00
    - Monitor backup health at 03:00

Usage
-----

[](#usage)

### Creating a Backup

[](#creating-a-backup)

```
php artisan backup:run
```

### Listing Backups

[](#listing-backups)

```
php artisan backup:list
```

### Cleaning Old Backups

[](#cleaning-old-backups)

```
php artisan backup:clean
```

### Monitoring Backup Health

[](#monitoring-backup-health)

```
php artisan backup:monitor
```

### Logs

[](#logs)

Backup logs are automatically stored in:

- `storage/logs/backup.log`
- `storage/logs/backup-clean.log`
- `storage/logs/backup-monitor.log`

Dropbox Setup Guide
-------------------

[](#dropbox-setup-guide)

1. Go to [Dropbox Developer Console](https://www.dropbox.com/developers)
2. Create a new app
3. Generate an OAuth 2 refresh token: ```
    https://www.dropbox.com/oauth2/authorize?client_id=YOUR_APP_KEY&response_type=code&token_access_type=offline

    ```
4. Exchange the code for refresh token: ```
    curl https://api.dropbox.com/oauth2/token \
      -d code=YOUR_AUTH_CODE \
      -d grant_type=authorization_code \
      -u YOUR_APP_KEY:YOUR_APP_SECRET
    ```

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

[](#configuration)

The package comes pre-configured, but you can publish the config file if you need to customize it:

```
php artisan vendor:publish --tag="backup-config"
```

Credits
-------

[](#credits)

- [Spatie](https://github.com/spatie) for their excellent Laravel Backup package
- [ProductShake](https://productshake.com)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance50

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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 ~0 days

Total

6

Last Release

353d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec387eaf0dd31e8fbd26afd05db62d3e17da440aba73df9cc983b07c7807b44e?d=identicon)[productshake](/maintainers/productshake)

---

Top Contributors

[![williamengbjerg](https://avatars.githubusercontent.com/u/54719?v=4)](https://github.com/williamengbjerg "williamengbjerg (11 commits)")

---

Tags

spatielaravelbackupdropboxproductshake

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-horizon-watcher

Automatically restart Horizon when local PHP files change

2631.9M](/packages/spatie-laravel-horizon-watcher)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[backpack/backupmanager

Admin interface for managing backups in Backpack, on Laravel 5.2+

340375.9k2](/packages/backpack-backupmanager)[spatie/laravel-dynamic-servers

Dynamically create and destroy servers

23313.0k2](/packages/spatie-laravel-dynamic-servers)[renoki-co/laravel-php-k8s

Just a simple port of renoki-co/php-k8s for easier access in Laravel.

88218.2k](/packages/renoki-co-laravel-php-k8s)[innocenzi/deployer-recipe-forge

Seamless zero-downtime deployment on Forge with Deployer

1916.6k](/packages/innocenzi-deployer-recipe-forge)

PHPackages © 2026

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