PHPackages                             ratulsaqibkhan/laravel-backup-google-drive - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. ratulsaqibkhan/laravel-backup-google-drive

ActiveLibrary[Database &amp; ORM](/categories/database)

ratulsaqibkhan/laravel-backup-google-drive
==========================================

Backup Laravel Application using laravel backup in google drive

v1.0.0(3y ago)117MITPHPPHP ^7.2|^8.0

Since May 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/RatulSaqibKhan/laravel-backup-google-drive)[ Packagist](https://packagist.org/packages/ratulsaqibkhan/laravel-backup-google-drive)[ Docs](https://github.com/RatulSaqibKhan/laravel-backup-google-drive)[ RSS](/packages/ratulsaqibkhan-laravel-backup-google-drive/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel Application Backup in Google Drive
==========================================

[](#laravel-application-backup-in-google-drive)

This is a laravel package to backup your application in google drive along with local directory. This package is inspired by [Spatie Laravel Backup](https://github.com/spatie/laravel-backup) and [Flysystem Adapter for Google Drive](https://github.com/nao-pon/flysystem-google-drive)

Install this package using the following command

```
composer require ratulsaqibkhan/laravel-backup-google-drive
```

```
php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
```

- Next step is to add google and backup in the disk option in the config/backup.php.

```
'disks' => [
    'google',
    'backup',
],
```

- Now set up empty string to the name option in the config/backup.php.

```
/*
* The name of this application. You can use this name to monitor
* the backups.
*/
'name' => '',
```

- Afterward, register GoogleDriveServiceProvider provider inside the config/app.php file.

```
'providers' => [
    Ratulsaqibkhan\LaravelBackupGoogleDrive\Providers\GoogleDriveServiceProvider::class,
]
```

- At this point, we will add the storage disk configuration to config/filesystem.php:

```
return [

    // ...

    'disks' => [

        // ...

        'google' => [
            'driver' => 'google',
            'clientId' => env('GOOGLE_DRIVE_CLIENT_ID'),
            'clientSecret' => env('GOOGLE_DRIVE_CLIENT_SECRET'),
            'refreshToken' => env('GOOGLE_DRIVE_REFRESH_TOKEN'),
            'folderId' => env('GOOGLE_DRIVE_FOLDER_ID'),
        ],

        'backup' => [
            'driver' => 'local',
            'root' => base_path('backup'),
        ],
        // ...

    ],

    // ...
];
```

- Now create a folder named "backup" in the application root at which the local backup files could be kept
- Next, we need to update .env file. In this environment file we need to add the following Google credentials with BACKUP\_ENABLE:

```
BACKUP_ENABLE = true

GOOGLE_DRIVE_CLIENT_ID=xxx.apps.googleusercontent.com
GOOGLE_DRIVE_CLIENT_SECRET=xxx
GOOGLE_DRIVE_REFRESH_TOKEN=xxx
GOOGLE_DRIVE_FOLDER_ID=null
```

- Now, add backup\_enable in config/backup.php outside of backup configuration

```
    'backup_enable' => env('BACKUP_ENABLE', false),
    'backup' = [
      ...
    ]
```

- With the following command the application can be backup:

```
php artisan laravel-app:backup
```

- For more info go to [Spatie Laravel Backup](https://github.com/spatie/laravel-backup) and [Flysystem Adapter for Google Drive](https://github.com/nao-pon/flysystem-google-drive)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3680e05634b720e372a8d12a5f4bb07bc891c17b37e1a4b11520ef07c4251c01?d=identicon)[ratulsaqibkhan](/maintainers/ratulsaqibkhan)

---

Top Contributors

[![RatulSaqibKhan](https://avatars.githubusercontent.com/u/22875080?v=4)](https://github.com/RatulSaqibKhan "RatulSaqibKhan (15 commits)")

---

Tags

spatiedatabasebackuplaravel-backupratulsaqibkhanlaravel-backup-google-drivegoogle-drive-laravel-backup

### Embed Badge

![Health badge](/badges/ratulsaqibkhan-laravel-backup-google-drive/health.svg)

```
[![Health](https://phpackages.com/badges/ratulsaqibkhan-laravel-backup-google-drive/health.svg)](https://phpackages.com/packages/ratulsaqibkhan-laravel-backup-google-drive)
```

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[pavel-mironchik/laravel-backup-panel

An interface for Spatie Laravel Backup package

41469.6k1](/packages/pavel-mironchik-laravel-backup-panel)[spatie/db-dumper

Dump databases

1.2k25.9M69](/packages/spatie-db-dumper)[spatie/laravel-translation-loader

Store your language lines in the database, yaml or other sources

8362.9M51](/packages/spatie-laravel-translation-loader)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

203330.1k2](/packages/wnx-laravel-backup-restore)[backup-manager/symfony

A simple database backup manager for Symfony2 with support for S3, Rackspace, Dropbox, FTP, SFTP.

119293.7k3](/packages/backup-manager-symfony)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
