Laravel 8 Backup Store On DropBOX Tutorial

In this tutorial you will learn about the Laravel 8 Backup Store On DropBOX Tutorial and its application with practical example.

In this Laravel 8 Backup Store On DropBox tutorial I will show you how to take laravel site backup in DropBox. In this tutorial I will also show you how to integrate DropBox in laravel 8 to store backup on DropBox. In this example we will learn DropBox integration in Laravel 8. In this example we will be using spatie/laravel-backup package to take backup in DropBox.

Laravel 8 Backup Store On DropBOX Tutorial

In this step by step Laravel 8 Backup Store On DropBox Example I will demonstrate you how to integrate DropBox in laravel site to take site backup. Please follow instructions given below:

  • Step 1 – Install Laravel 8 App
  • Step 2 – Connecting App to Database
  • Step 3 – Install spatie/laravel-backup
  • Step 4 – Setup Dropbox as Filesystem in Laravel
  • Step 5 – Configure Dropbox Details
  • Step 6 – Execute Backup Command
  • Step 7 – Conclusion

Step 1 – Install Laravel 8 App

First of all we need to create a fresh laravel project, download and install Laravel 8 using the below command

Step 2 – Connecting App to Database

Now, lets create a MySQL database and connect it with laravel application. After creating database we need to set database credential in application’s .env file.

Step 3 – Install spatie/laravel-backup

In this step run the following command to install spatie/laravel-backup package in laravel 8:

Now, run the following command to publish this installed package:

Now, you need to add dropbox details in the disk option in the config/backup.php.

Step 4 – Setup Dropbox as Filesystem in Laravel

Now, you need to run the following command to install a Filesystem adapter for DropBox:

Then, inside the boot() method add the Dropbox for the Laravel filesystem:


After this, register the service provider by adding the following line in the providers array of config/app.php.

Step 5 – Configure Dropbox Details

Now you need to configure Dropbox app with this laravel app. Go to the config directory and open filesystem.php file and add the client id, secret and callback url:


And also you need to update .env file of laravel 8 app. In this environment file you need to add the following Dropbox auth token:

Step 6 – Execute Backup Command

In this step we are ready to take backup run the following command to check the backup file is created or not:

In this tutorial we have learn about the Laravel 8 Backup Store On DropBOX Tutorial and its application with practical example. I hope you will like this tutorial.