@extends('layouts.dashboard.template') @section('title', 'Backup Database & Storage — FST UIS') @section('content')

Backup Database & Storage

{{-- Flash Messages --}} @if(session('success')) @endif @if(session('error')) @endif {{-- Target Storage & Status Banner --}}
Target: {{ $targetInfo['location_label'] }} Jadwal Otomatis Harian Aktif (01:00 WIB)

Pusat Backup & Pemulihan Sistem

File cadangan database MySQL (.sql) dan berkas media storage (.zip) otomatis disimpan langsung ke direktori aman di Drive D:.

{{ $targetInfo['directory'] }}
Kapasitas Drive Target {{ $targetInfo['free_space'] }} Bebas
Total: {{ $targetInfo['total_space'] }} {{ $targetInfo['total_files'] }} File Backup ({{ $targetInfo['total_backup_size'] }})
{{-- Informasi Jadwal Otomatis Harian & Sinkronisasi Laptop --}}
Informasi Jadwal Backup Otomatis & Sinkronisasi Laptop
Jadwal cPanel / Server

Sistem telah terkonfigurasi untuk mengeksekusi backup database dan storage setiap hari secara otomatis:

  • Waktu: Pukul 01:00 WIB (Harian)
  • Target: {{ $targetInfo['directory'] }}
  • Format: date_namafile
Perintah Manual Server

Eksekusi manual dapat dipicu kapan saja melalui terminal / SSH:

php artisan system:backup
Juga dapat dipicu via Cron Jobs cPanel dengan interval sesuai kebutuhan.
Auto-Sync ke Laptop (Drive D: / C:)

Ingin backup dari cPanel otomatis tersimpan di laptop ke Drive D: (atau ke Drive C: jika tidak ada D:) tanpa Google Drive?

Unduh Skrip Sync Laptop (.bat)
{{-- Action Cards --}}
{{-- Card 1: Backup Database --}}
Backup Database
Struktur & Data MySQL

Mengekspor seluruh tabel, struktur data, relasi, dan konten website ke file SQL standar.

Format Penamaan File: {{ now('Asia/Jakarta')->format('Y-m-d') }}_namafile.sql
@csrf
{{-- Card 2: Backup Storage --}}
Backup Storage
Berkas & Media Upload

Mengompres seluruh foto, avatar, dokumen unduhan, dan aset publik ke dalam satu arsip ZIP.

Format Penamaan File: {{ now('Asia/Jakarta')->format('Y-m-d') }}_namafile.zip
@csrf
{{-- Card 3: Backup Lengkap --}}
Backup Lengkap
Database + Storage Sekaligus

Menjalankan proses pencadangan menyeluruh untuk menjamin keamanan integritas data sistem dan seluruh berkas media website.

Target Penyimpanan:
D:\website fst
@csrf
{{-- Table Backup List --}}
Daftar File Backup di Drive D:

Arsip backup database dan storage yang tersimpan di {{ $targetInfo['directory'] }}

{{ count($backups) }} File Tersedia
@forelse($backups as $index => $item) @empty @endforelse
No Nama File Backup Tipe Ukuran File Waktu Dibuat Aksi
{{ $index + 1 }}
@if($item['type'] === 'database') @else @endif
{{ $item['filename'] }}
{{ $item['path'] }}
@if($item['type'] === 'database') Database SQL @else Storage ZIP @endif {{ $item['size'] }}
{{ $item['created_at'] }}
{{ $item['created_at_human'] }}
@csrf @method('DELETE')
Belum Ada File Backup

Klik tombol Backup Sekarang di atas untuk membuat arsip cadangan pertama Anda.

{{-- Script Helper (SweetAlert2 Modern Popup) --}} @endsection