{{ __('Database Backup Settings') }}

@csrf @method('POST')
@include('layouts.messages')
Total Backups
{{ count($backups) }}
@if(count($backups) > 0)
Latest Backup
{{ date('Y-m-d H:i', $backups[0]['created_at']) }}
Total Size
@php $totalSize = array_reduce($backups, function($carry, $backup) { return $carry + $backup['size']; }, 0); echo $totalSize > 1024 * 1024 ? round($totalSize / (1024 * 1024), 2) . ' MB' : round($totalSize / 1024, 2) . ' KB'; @endphp
@endif

Backup Management

Database backups are essential for data protection. Regular backups help prevent data loss in case of system failures or other issues. Create, download, and manage your backups below.

{{-- Debug Information --}} @if(isset($debug))

Debug Information

Backup Path: {{ $debug['backup_path'] }}

Backup Count: {{ $debug['backup_count'] }}

Directory Exists: {{ $debug['directory_exists'] ? 'Yes' : 'No' }}

Directory Writable: {{ $debug['directory_writable'] ? 'Yes' : 'No' }}

Directory Readable: {{ $debug['directory_readable'] ? 'Yes' : 'No' }}

Directory Permissions: {{ $debug['directory_permissions'] }}

Found Files: {{ $debug['found_files'] }}

Raw Files: {{ $debug['raw_files'] }}

PHP User: {{ $debug['php_user'] }}

Storage Path: {{ $debug['storage_path'] }}

Public Path: {{ $debug['public_path'] }}

@if(isset($debug['error']))

Error: {{ $debug['error'] }}

@endif @if(isset($debug['trace']))
{{ $debug['trace'] }}
@endif
@endif @if(count($backups) > 0)
@foreach($backups as $backup) @endforeach
Filename Size Created At Actions
{{ $backup['filename'] }}
@php $size = $backup['size']; if ($size < 1024) { echo $size . ' B'; } elseif ($size < 1024 * 1024) { echo round($size / 1024, 2) . ' KB'; } else { echo round($size / (1024 * 1024), 2) . ' MB'; } @endphp
{{ date('Y-m-d H:i:s', $backup['created_at']) }}
Download
@csrf @method('DELETE')
@else

No Backups Available

Create your first database backup to protect your data.

@csrf @method('POST')
@endif

Backup Best Practices

  • Create regular backups, especially before major system changes
  • Download and store backups in multiple secure locations
  • Test backup restoration periodically to ensure data integrity
  • Keep at least 3 recent backups at all times
  • Delete old backups to save storage space, but maintain a good retention policy