@extends('layouts.app')
@section('title', 'Backup & Restore')
@section('content')
Backup & Restore
Download a Backup
Downloads every row of real data (orders, menu, staff, accounting, everything except
temporary session/cache data) as a single .zip file. Use this to move data to a new
domain/hosting, or just as a safety copy before a risky change.
Tables included: {{ implode(', ', $tables) }}
Download Backup (.zip)
Restore from a Backup
@if ($errors->any())
{{ $errors->first() }}
@endif
This replaces existing data. Restoring a backup empties every table it
covers and refills it from the file — anything currently in this site's database for
those tables is gone afterward, not merged. Only restore into a site you intend to
overwrite (e.g. a fresh install on a new domain), never into a live site with orders
you want to keep, unless you've backed that up first too.
Typical migration flow, source site → new site:
- On the source site: Download Backup here.
- Set up the new site normally (Steps 1–6 in the main README — fresh Laravel
project, files copied in,
php artisan migrate --seed run so the
tables exist).
- On the new site: come to this same page, upload the backup, check the
confirmation box, and Restore.
@endsection