Laravel — Backup database to your Google Drive

As said before, if you do not enter a ID it will store to the root.Now lets check to see if it actually works, run this command to see if it worked:backup:run –only-dbThats it, you should now have automatic backups to your Google Drive in combination with the backup package from Spatie, and the Flysystem driver from Google..This will look like this:Resolving possible errorsIf you encounter an error “File not found” you might want to set the name to a empty string inside the backup configuration file.config/backup.php'name' => env('GOOGLE_DRIVE_FOLDER_ID', ''),Note: please bare in mind that I am a Dutch developer, English is not my native language so this article could contain any grammatical errors.. More details

Leave a Reply