Download the PHP package redaelfillali/laravel-backup without Composer
On this page you can find all versions of the php package redaelfillali/laravel-backup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download redaelfillali/laravel-backup
More information about redaelfillali/laravel-backup
Files in redaelfillali/laravel-backup
Package laravel-backup
Short Description Laravel Backup solution for shared hosting
License
Informations about the package laravel-backup
redaelfillali/laravel-backup
A simple Laravel package for backing up files and databases with support for different backup types and scheduling. This package allows you to perform backups without the use of proc_open
, and can be triggered via a console command or a custom controller route.
Features
- Backup Path: Easily set the destination folder for backups.
- Backup Types:
- Full Backup (both files and database)
- Files Only
- Database Only
- No
proc_open
Dependency: The package works without relying onproc_open
, ensuring compatibility with restrictive hosting environments. - Command and Controller Support: Can be used via a console command or integrated into your application with a custom controller and route.
- Scheduled Backups: Utilize Laravel's task scheduling system to automate backups.
Installation
You can install this package via Composer:
Configuration
After installation, if the package includes configuration files, you can publish them using the following Artisan command:
This will copy the configuration file to your config directory, where you can adjust settings like the backup path and notification options.
Usage
Running Backups via Command
You can run a backup using the following Artisan command:
Available Options:
- --filename: Specify a custom filename for the backup.
- --only-db: Backup only the database.
- --db-name=*: Specify which database(s) to backup.
- --only-files: Backup only files (no database).
- --only-to-disk=*: Specify which disk to use for the backup.
- --disable-notifications: Disable notifications after the backup.
- --timeout=*: Set a timeout for the backup process.
- --tries=*: Specify the number of retry attempts for the backup.
Running Backups via Controller
You can also run a backup by sending a POST request to a custom route in your application. Here's an example of how you might set up a route and controller method:
Scheduling Backups
You can schedule backups using Laravel's task scheduling system. Here's an example of how you might set up a scheduled backup in your App\Console\Kernel
class:
Controller Route for Backup
Route Definition
License
This package is open-source software licensed under the MIT license.
Key Sections:
- Installation: Instructions for adding the package to your Laravel project via Composer.
- Configuration: How to publish configuration files and modify settings.
- Usage:
- How to run backups manually using an Artisan command.
- Example code to trigger backups via a controller.
- How to schedule backups with Laravel's task scheduler.
- Controller Route: Instructions to set up an HTTP route to trigger backups via a controller.
- License: Information about the open-source license for the package.
This README.md
should give clear guidance to users on how to install, configure, and use your backup package within a Laravel project. Feel free to expand or adjust the sections as necessary!
All versions of laravel-backup with dependencies
google/apiclient Version ^2.18
league/flysystem Version ^3.29