# Google Drive Backup Setup Instructions

You requested to set up database backups to Google Drive every hour. I have already configured the schedule and the filesystem disk, but you need to install the packages and publish the config file manually because the installation takes some time on this environment.

## Steps to Complete

### 1. Install the Backup Package
Run this command to install the Spatie backup package:
```bash
composer require spatie/laravel-backup
```

### 2. Install the Google Drive Driver
Run this command to install the Google Drive adapter (this may take a few minutes to extract):
```bash
composer require masbug/flysystem-google-drive-ext
```

### 3. Publish the Backup Configuration File
Once both packages are successfully installed, run this command to generate the `config/backup.php` file:
```bash
php artisan vendor:publish --tag="backup-config"
```

### 4. Configure Backup Destination
After running the publish command, open `config/backup.php` and update the `disks` array under `destination` to use `'google'`:

```php
'destination' => [
    'filename_prefix' => '',
    'disks' => [
        'google',
    ],
],
```

---

## What has already been configured for you:
*   **Filesystem Disk**: Added `google` disk to `config/filesystems.php`.
*   **Schedule**: Added hourly DB backup to `bootstrap/app.php`.
*   **Environment Variables**: Added placeholders to the bottom of `.env`.

You will need to fill in the Google Drive credentials in your `.env` file once you obtain them from your Google Cloud Console.
