@extends('layouts.app') @section('title', 'Backups') @section('actions')
@csrf
@endsection @section('content') @error('backup')
{{ $message }}
@enderror @unless($zipAvailable)
ZipArchive extension is not enabled on this server. Enable the PHP zip extension to create backups, or export the database and public/uploads folder manually.
@endunless
Keep downloaded backups safe. Restore should be done by developer/admin carefully to avoid overwriting live data.
@forelse($backups as $b) @empty @endforelse
Backup FileDate / TimeSizeActions
{{ $b->name }} {{ $b->date }} {{ $b->size }} Download
@csrf @method('DELETE')
No backups yet. Click "Create Backup Now".
What is included & how backups work
Scheduler / cron setup (VPS / cPanel)

Add this single cron entry on the server so scheduled backups run:

* * * * * php /path-to-project/artisan schedule:run >> /dev/null 2>&1

Manual command anytime: php artisan backup:run

Restore (manual, for safety)
  1. Download the backup .zip and unzip it.
  2. Import database.sql into the database (phpMyAdmin / mysql CLI). This overwrites current data — do it on a staging copy first.
  3. Copy the uploads/ folder from the zip back into the project's public/uploads.
  4. Restore should be performed by the developer/admin to avoid accidental data loss.
@endsection