Setup Automatic Laravel Daily Backup Tutorial

Prerequisites

This tutorial motive, I take that you have a Laravel application installed on a web server. My setup is:

  • Google Drive API
  • MySQL Database
composer require spatie/laravel-backup
php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"

Take Backup

This package provides numerous commands, let us try and test few of them:

php artisan backup:run
php artisan backup:run --only-db
php artisan backup:run --only-files

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

[HowTo] transfer files from one Linux machine to another with existing tools

Slot Machine Reel Stops

Introducing Forge by OnePlanet — Forge: Assemble & Disassemble

APACHE WEBSERVER CONFIGURATION INSIDE DOCKER CONTAINER🐋 USING ANSIBLE

Saving Data Input from A Web (HTML) into SPIFFS (with Arduino IDE and ESP32)

Kustomize explained; an MLOps Use Case

Beginner Information Of SQL? And Why You Need To Lean?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Razet

Razet

More from Medium

Laravel Tutorial #2: Route and Middleware

How to install Laravel PHP Framework on macOS?

Deploy Laravel Project

Stripe ACH implementation in laravel