Download the PHP package arham-solcoders/backupguard without Composer
On this page you can find all versions of the php package arham-solcoders/backupguard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download arham-solcoders/backupguard
More information about arham-solcoders/backupguard
Files in arham-solcoders/backupguard
Download arham-solcoders/backupguard
More information about arham-solcoders/backupguard
Files in arham-solcoders/backupguard
Vendor arham-solcoders
Package backupguard
Short Description Laravel package that creates daily SQL database backups and keeps only the last 3 days using the scheduler.
License MIT
Homepage https://github.com/arham-solcoders/backupguard
Package backupguard
Short Description Laravel package that creates daily SQL database backups and keeps only the last 3 days using the scheduler.
License MIT
Homepage https://github.com/arham-solcoders/backupguard
Please rate this library. Is it a good library?
Informations about the package backupguard
Laravel DB Backup Package
A publishable Laravel package that creates daily SQL database backups from the host project's database configuration and keeps only the last 3 days of backup files.
Features
- Daily backup command:
db-backup:run - Reads connection settings from host app
config/database.php(which comes from host.env) - Supports MySQL/MariaDB and PostgreSQL
- Prunes backup files older than configured retention (default: 3 days)
- Publishable config file
Requirements
- PHP 8.1+
- Laravel 10/11/12
- System binaries:
mysqldumpfor MySQL/MariaDBpg_dumpfor PostgreSQL
Installation
The service provider is auto-discovered.
Publish Config
This creates:
config/laravel-db-backup.php
Configuration
Scheduling
For Laravel 11+, the package uses withSchedule() automatically.
For Laravel 10, add this to your app scheduler:
Cron (Server)
Make sure your server cron runs Laravel scheduler every minute:
Verify
Run manually:
Backups are stored in:
storage/app/db-backups/{connection-name}/{YYYY-MM-DD}/
Publish This Package (Complete Steps)
- Create a new GitHub repository for this package.
- Push code to
main. -
Tag a release:
- Publish to Packagist:
- Open https://packagist.org/packages/submit
- Submit your repository URL
- In consumer Laravel app:
composer require arham-solcoders/backupguardphp artisan vendor:publish --tag=laravel-db-backup-config- Configure backup path/connections
- Ensure scheduler cron exists
Troubleshooting
mysqldump: not foundorpg_dump: not found:- Install database client tools and ensure they are available in PATH.
- Authentication failures:
- Verify host app
.envDB credentials.
- Verify host app
- Empty output:
- Try command manually with verbose DB credentials to confirm binary access.
License
MIT
All versions of backupguard with dependencies
PHP Build Version
Package Version
The package arham-solcoders/backupguard contains the following files
Loading the files please wait ...