@extends('layouts.app') @section('title', 'Backups') @section('actions')
@endsection @section('content') @error('backup')zip extension to create backups, or export the database and public/uploads folder manually.| Backup File | Date / Time | Size | Actions |
|---|---|---|---|
| {{ $b->name }} | {{ $b->date }} | {{ $b->size }} | Download |
| No backups yet. Click "Create Backup Now". | |||
.zip containing a full database SQL dump (patients, visits, fees, remaining payments, tests, ingredients, stock entries, usage, products, POS sales & items, users/roles) plus all uploaded files (prescription slips, test images, product images) from public/uploads.storage/app/backups — outside the public folder, so they are never directly reachable by URL. Downloads are served only through this admin-only page.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
.zip and unzip it.database.sql into the database (phpMyAdmin / mysql CLI). This overwrites current data — do it on a staging copy first.uploads/ folder from the zip back into the project's public/uploads.