@extends('layouts.app') @section('content')

Backup Policies

Configure scheduled automated backups
Back to Dashboard
@if(session('success'))
{{ session('success') }}
@endif {{-- POLICIES LIST --}}
Scheduled Backup Policies
@forelse($policies as $policy) @empty @endforelse
Name Schedule Retention Destination Last Run Next Run Status Actions
{{ $policy->name }}
@if($policy->encrypt) @endif
{{ ucfirst($policy->schedule_type) }} {{ $policy->retention_days }} days @if($policy->destination_id) Dest #{{ $policy->destination_id }} @else Default @endif {{ $policy->last_run_at ? \Carbon\Carbon::parse($policy->last_run_at)->diffForHumans() : 'Never' }} @if($policy->next_run_at) {{ \Carbon\Carbon::parse($policy->next_run_at)->diffForHumans() }} @else — @endif @if($policy->enabled) Enabled @else Disabled @endif
@csrf
@csrf @method('DELETE')
No backup policies configured. Add your first scheduled backup policy.
{{-- CRON INSTRUCTIONS --}}
Cron Job Setup

Add this to your crontab to enable scheduled backups:

* * * * * cd /var/www/html && php artisan backup:run-scheduled >> /var/log/backup-scheduled.log 2>&1

This runs the backup scheduler every minute. Policies will only execute when their next_run_at time is reached.

{{-- REPLICATION SCHEDULE --}}
Replication Schedule

Add this to your crontab to enable automatic replication to secondary PBX (41.221.10.110):

0 1 * * * cd /var/www/html && php artisan backup:run-replication >> /var/log/replication.log 2>&1

This runs replication every night at 01:00 AM. Adjust the schedule as needed.

@endsection