Generate and manage system backups. You can restore previous database snapshots directly from the table below. Note that database restoration is destructive and will overwrite your existing catalog, orders, settings, and users.

@if(count($backups) > 0) @foreach($backups as $backup) @endforeach
File Name Created At File Size Actions
{{ $backup['filename'] }} {{ \Carbon\Carbon::parse($backup['created_at'])->format('M j, Y h:i A') }} {{ $backup['size'] }} Download Restore Delete
@else

No system backups found.

Click "Create Backup" in the top header to generate your first backup archive.

@endif

Automated Backup Schedules & Retention Policy

Sawdabazar runs automated daily backup operations inside the system background scheduler.

Database & File Backup Daily at 02:00 AM Creates local snapshot and writes to private storage.
Retention Cleanup Daily at 01:00 AM Removes old archive records matching clean criteria.
Storage Path storage/app/private/Laravel Secured privately to prevent external downloads.

Active Server Cron Job Setup

To allow automated daily backups and cleanup checks to run automatically in the background, you must configure a single Cron Job on your server.

Your Server Cron Command:

* * * * * cd {{ base_path() }} && php artisan schedule:run >> /dev/null 2>&1

Setting Up on Server Panels:

  • cPanel: Go to "Cron Jobs", select "Once Per Minute" (* * * * *) from common settings, paste the command above, and click "Add New Cron Job".
  • VPS (Ubuntu/Debian): SSH into your server, run crontab -e, paste the command at the end of the file, and save.
  • Local Testing (Laragon/Local): Run php artisan schedule:work in your terminal to simulate the scheduler.