robertaskam/laravel-google-drive-backup

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (v1.2.4) of this package.

A tool to add automatic backups to Google Drive

v1.2.4 2019-04-17 14:14 UTC

This package is auto-updated.

Last update: 2023-05-09 18:16:08 UTC


README

This will not be visible in your Google Drive UI

Setup

php artisan vendor:publish --provider="RobertAskam\BackupGoogleDrive\DriveBackupServiceProvider"

Go to config/drivebackup and set the necessary vars

Google API

  • Go to https://console.cloud.google.com
  • Click APIS & Services
  • Click Library and Enable Google Drive
  • Click Credentials
  • Open the drop down in the middle that says create credientials and click Service Account Key
  • Create new service account
  • Role->Select Project then Owner
  • Make sure JSON is selected
  • Click create and copy the downloaded file into you Storage Folder and call it secret.json

Backup

To run manually use

php artisan drivebackup:run

Or to Schedule just add the following to your Kernel

$schedule->command('drivebackup:run')->daily();

Restore

To run manually use the following command, select the backup name you want, this will save it in Storage/app database name

php artisan driverestore:run

Donate using Liberapay