bishalgurung / db-backup-s3
This package allows you to backup your database to s3 using spatie backup package
dev-main
2024-04-01 07:41 UTC
Requires
- league/flysystem-aws-s3-v3: ^3.26
- spatie/laravel-backup: ^8.0
Requires (Dev)
- orchestra/testbench: ^8.0
This package is auto-updated.
Last update: 2025-03-14 12:31:04 UTC
README
Installation
- composer require bishalgurung/db-backup-s3:dev-main
- php artisan vendor:publish --provider="BishalGurung\Backup\BackupS3ServiceProvider"
- setup the following credentials in .env and backup.php: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION, AWS_BUCKET, BACKUP_FOLDER_NAME
- In backup.php, "name" should be unique for every project
- Use php artisan backup:db-s3 to backup your database
- Use php artisan backup:import-s3 {path} to import data from s3 (Keep in mind that this will delete all data from your current database)