bishalgurung/db-backup-s3

This package allows you to backup your database to s3 using spatie backup package

Installs: 35

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/bishalgurung/db-backup-s3

dev-main 2024-04-01 07:41 UTC

This package is auto-updated.

Last update: 2025-10-14 14:00:17 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)