@extends('layouts.app') @section('title', 'Database Backup') @section('content')

Database backup

Create and download SQL snapshots of the school database. Keep copies off the server.
@csrf
@include('settings._nav')

Backup archive

{{ num($files->count()) }} SQL files
@forelse($files as $file) @empty @endforelse
FileCreatedSizeActions
{{ $file['name'] }} {{ $file['date'] }} {{ number_format($file['size'] / 1024, 1) }} KB Download

Backup guidance

Best practice
Recommended frequencyDaily after fee collection
RetentionAt least 30 days
Off-site copyDownload and store securely
RestoreUse phpMyAdmin or the mysql CLI

Restore command

Run from the project root
mysql -u root shule_management < storage/app/backups/shule-YYYYMMDD-HHMMSS.sql

Restoring replaces current data. Always take a fresh backup before restoring an older snapshot.

@endsection @push('styles') @endpush