import InputError from '@/components/input-error'; import LoadingButton from '@/components/loading-button'; import { Card } from '@/components/ui/card'; import { useForm } from '@inertiajs/react'; import { Download, RefreshCw } from 'lucide-react'; const ApplicationBackup = () => { // Form for backup functionality const { post, errors, processing } = useForm({}); const refreshForm = useForm({}); const handleRefreshServer = () => { refreshForm.post(route('system.refresh')); }; const handleBackup = (e: React.FormEvent) => { e.preventDefault(); post(route('system.backup')); }; return ( <>

Application Backup

Create a complete backup of your application including files and database

What will be backed up?

  • Source Code: All application files and code
  • Database: Complete MySQL database dump
  • Configuration: Environment and config files
  • Assets: Uploaded media and public files

Note: Every time refresh server before backup.

{errors && Object.keys(errors).length > 0 && (
{Object.entries(errors).map(([key, error]) => ( ))}
)}
Refresh Server
{processing ? 'Creating Backup...' : 'Create Backup'}
); }; export default ApplicationBackup;