Skip to content

Commit 7a4f04f

Browse files
authored
Merge pull request #4 from Innovix-Matrix-Systems/IMS-5
Added a backup management system of your app
2 parents b1d7b76 + c04629c commit 7a4f04f

34 files changed

+2018
-1
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Explore this project and experience the convenience of a ready-made local develo
1616

1717
- **Multiple Language Support**: Provide a multilingual experience with [Laravel Lang](https://laravel-lang.com/) to make your application accessible to a diverse user base.
1818

19+
- **Application and Database Backup System**: Provide an application and database backup system with [laravel-backup](https://spatie.be/docs/laravel-backup/v8/introduction) to make your application safe and ready for quick recovery.
20+
1921
## Required Commands to run locally
2022

2123
1.**Create Your Project from the Template:**
@@ -257,6 +259,17 @@ php artisan test
257259

258260
Running tests is crucial to ensure the reliability and correctness of your application's functionality. The above command will initiate the testing process and provide you with valuable insights into the quality of your codebase.
259261

262+
## Backup System
263+
264+
The backup system is provided by [laravel-backup](https://spatie.be/docs/laravel-backup/v8/introduction).
265+
266+
you can run the following commad to generate a backup:
267+
```bash
268+
php artisan backup:run
269+
```
270+
271+
also the schedular is configured to do schedule backup and cleanup of your application.
272+
260273
## Extra Artisan Commands
261274

262275
This project provides additional Artisan commands to simplify your workflow and enhance productivity.

app/Console/Kernel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ protected function schedule(Schedule $schedule): void
1414
{
1515
// $schedule->command('inspire')->hourly();
1616
$schedule->command('telescope:prune')->daily();
17+
$schedule->command('backup:clean')->daily()->at('01:00');
18+
$schedule->command('backup:run')->daily()->at('01:30');
1719
}
1820

1921
/**

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"laravel/framework": "^11.0",
1111
"laravel/sanctum": "^4.0",
1212
"laravel/tinker": "^2.8",
13+
"spatie/laravel-backup": "^8.6",
1314
"spatie/laravel-permission": "^6.0"
1415
},
1516
"require-dev": {

0 commit comments

Comments
 (0)