Menu

Post image 1
Post image 2
1 / 2
0

Laravel Backup 2.0: From Local to Cloud-Native

DEV Community·Ankit Verma·about 1 month ago
#xLjo2rJf
#laravel#php#fullscreen#backup#backups#enter
Reading 0:00
15s threshold

Remember when backing up your Laravel app meant just dumping files to a local folder? Those days are over. Laravel Backup v2.0 now supports multi-destination backups to Google Drive and S3-compatible storage (AWS, Backblaze B2, MinIO, DigitalOcean Spaces) - all simultaneously. The Upgrade Story v1.0: "Backup to local storage" v2.0: "Backup everywhere at once" Let's Set This Up Step 1: Install composer require avcodewizard/laravel-backup composer require google/apiclient # For Google Drive composer require aws/aws-sdk-php # For S3 Enter fullscreen mode Exit fullscreen mode Config auto-publishes. No vendor:publish needed. ✨ Step 2: Google Drive (OAuth 2.0) The cool part: The auth command accepts your full redirect URL OR just the code. php artisan backup:google-auth Enter fullscreen mode Exit fullscreen mode Visit this URL: https://accounts.google.com/o/oauth2/... Paste the full URL or authorization code: > http://localhost/?code = 4/0AeoWuM8YPEQ33BC09c...…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More