Put a backup back
Choose an archive that is already on the server, or upload one this system wrote, and it is restored over the live database. No account is needed. The migrations that ship with the running code are applied on top of it, so what comes back matches the code you are looking at.
@if (! empty($state['closed']))
@endif
@if (! empty($state['error']))
@endif
@if (! empty($state['result']))
@endif
@if (! empty($state['result']['migrations']))
@endif
@endif
@if (count($uses) > 0)
@if (($state['closed']['reason'] ?? '') === 'closed')
This link has been closed.
@if (! empty($state['closed']['by']))
Closed by {{ $state['closed']['by'] }}
@endif
@if (! empty($state['closed']['at']))
on {{ \Illuminate\Support\Carbon::parse($state['closed']['at'])->format('j M Y, g:i a') }}
@endif
. Somebody with access to Settings → Backup can open a new one.
@else
This link has expired.
@if (! empty($state['closed']['at']))
It was open until {{ \Illuminate\Support\Carbon::parse($state['closed']['at'])->format('j M Y, g:i a') }}.
@endif
Somebody with access to Settings → Backup can open a new one.
@endif
{{ $state['error'] }}
The database was restored from {{ $state['result']['archive'] }}.
Sign in to the site to carry on. This link is still open, so it can be used
again while it lasts.
- Tables now in the database
- {{ number_format($state['result']['tables']) }}
- Stored files restored
- {{ number_format($state['result']['files']) }}
- Copy taken beforehand
- {{ $state['result']['safety'] }}
- Migrations
- {{ $state['result']['migrations'] === null ? 'Not run' : 'Applied' }}
The restore worked, but the migrations that bring the schema up to the running code failed:
{{ $state['result']['migration_error'] }}
{{ $state['result']['migrations'] }}
@endif
@endif
@if (empty($state['closed']))
@if (empty($state['result']) && empty($state['error']))
This replaces the database. Every record in it is overwritten
by the archive, anyone signed in is signed out, and a full verified backup of
the current state is taken first so this can be undone.
Recent use of this link
| When | Archive | Outcome |
|---|---|---|
| {{ ! empty($use['at']) ? \Illuminate\Support\Carbon::parse($use['at'])->format('j M, g:i a') : '—' }} |
{{ $use['archive'] ?? '—' }}
@if (! empty($use['safety']))
copy saved as {{ $use['safety'] }}
@endif
|
{{ ucfirst($use['outcome'] ?? 'used') }} |
Every attempt is recorded, including the ones that were refused — those files live on the server, not in the database, so a restore cannot erase them.
@endif