PHPackages                             cyberwizard/dbsafeguard - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. cyberwizard/dbsafeguard

ActiveLibrary[File &amp; Storage](/categories/file-storage)

cyberwizard/dbsafeguard
=======================

A Laravel package for safeguarding your database with easy-to-use backup commands.

34.1k↓50%1[1 issues](https://github.com/cyberwizard-dev/DBSafeGuard/issues)PHP

Since Jan 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cyberwizard-dev/DBSafeGuard)[ Packagist](https://packagist.org/packages/cyberwizard/dbsafeguard)[ RSS](/packages/cyberwizard-dbsafeguard/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DBSafeguard Database Backup
===========================

[](#dbsafeguard-database-backup)

DBSafeguard Database Backup is a simple Laravel package that provides a convenient command-line interface to backup your database.

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

[](#installation)

1. Install the package via Composer:

```
composer require cyberwizard/dbsafeguard:dev-main
```

2. **Usage:**

To manually backup your database, run the following command:

```
php artisan backup:db
```

The backup file will be stored in the `storage/app/backups` directory with a timestamped filename.

3. **Schedule Backups:**

You can schedule automatic backups by adding the following entry to your Laravel task scheduler (usually defined in the `App\Console\Kernel` class):

```
$schedule->command('backup:db')->daily();
```

This will run the database backup command daily. Adjust the schedule as needed. Here are some examples:

- `$schedule->command('backup:db')->daily();` - Run daily at midnight.
- `$schedule->command('backup:db')->dailyAt('3:00');` - Run daily at 3:00 AM.
- `$schedule->command('backup:db')->twiceDaily(1, 13);` - Run twice a day at 1:00 AM and 1:00 PM.

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

[](#configuration)

The package uses environment variables (`DB_DATABASE`, `DB_USERNAME`, `DB_PASSWORD`) to connect to the database. Ensure these variables are correctly set in your `.env` file.

Author
------

[](#author)

Cyberwizard

Contact:

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

Extra
-----

[](#extra)

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

[](#installation-1)

You can install this package directly from the GitHub repository. Follow the steps below:

1. Open your project's `composer.json` file.
2. Add the GitHub repository to the `repositories` key:

    ```
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/cyberwizard-dev/DBSafeGuard/"
        }
    ],
    ```
3. In the `require` section, specify the package name and version:

    ```
    "require": {
        "cyberwizard/DBSafeGuard/": "dev-main"
    },
    ```
4. Run the following command to install the package:

    ```
    composer install
    ```

    This will fetch the package directly from the GitHub repository and install it in your project.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![cyberwizard-dev](https://avatars.githubusercontent.com/u/53139650?v=4)](https://github.com/cyberwizard-dev "cyberwizard-dev (22 commits)")

### Embed Badge

![Health badge](/badges/cyberwizard-dbsafeguard/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15161.6M2.6k](/packages/illuminate-filesystem)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)[madnest/madzipper

Easier zip file handling for Laravel applications.

1382.3M6](/packages/madnest-madzipper)

PHPackages © 2026

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