Skip to content

rifjan29/example-backup-database

Repository files navigation

Example Backup Database

Backup Database menggunakan Laravel-backup dan menyimpan ke GDrive

Run Locally

Clone the project

  git clone https://github.com/rifjan29/example-backup-database.git

Go to the project directory

  cd my-project

Install dependencies

  npm install
  composer install 
  cp .env.example .env
  php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"

Start the server

  php artisan serve 

Run the Backup

  php artisan backup:run

Documentation

Laravel-Backup

Acknowledgements

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

GOOGLE_DRIVE_CLIENT_ID=your_google_drive_id

GOOGLE_DRIVE_CLIENT_SECRET=GOOGLE_DRIVE_CLIENT_SECRET_id

GOOGLE_DRIVE_REFRESH_TOKEN=GOOGLE_DRIVE_REFRESH_TOKEN

GOOGLE_DRIVE_FOLDER=

About

Backup data menggunakan composer show spatie/laravel-backup dan tersimpan di GDrive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published