# Auto-Backup & One-Click Restore

**Professional WordPress backup and restore solution developed by Dcastalia Ltd.**

A comprehensive, modern backup solution for WordPress that provides complete site protection with an intuitive interface, real-time progress tracking, and advanced email notifications.

## Key Features

### **One-Click Backup & Restore**

-  **Instant Backup Creation** - Create complete site backups with a single click
-  **Real-Time Progress** - Live progress tracking with detailed status updates
-  **One-Click Restoration** - Restore your entire site from any backup point
-  **AJAX Interface** - Smooth, no-reload experience throughout the plugin

### **Advanced Automation**

-  **Scheduled Backups** - Automatic daily, weekly, or monthly backups
-  **Smart Cleanup** - Automatic deletion of old backups to save space
-  **Background Processing** - Non-blocking backup operations
-  **Cron Integration** - Reliable WordPress cron system integration

### **Professional Email Notifications**

-  **Event-Based Alerts** - Customizable notifications for different events
-  **HTML & Plain Text** - Choose your preferred email format
-  **Success & Failure Alerts** - Get notified of both successful and failed operations
-  **Detailed Reports** - Comprehensive backup and restore status emails

### **Modern Interface**

-  **Professional Design** - Beautiful, modern admin interface
-  **Real-Time Updates** - All operations update instantly without page reloads
-  **Mobile Responsive** - Works perfectly on all devices
-  **Intuitive Controls** - User-friendly interface with clear instructions

## **What Gets Backed Up**

| Component              | Description                                                           |
| ---------------------- | --------------------------------------------------------------------- |
| **Database**           | Complete WordPress database with all content, settings, and user data |
| **Plugins**            | All installed plugins and their configuration files                   |
| **Themes**             | All themes including active, inactive, and child themes               |
| **Media Library**      | All uploaded files, images, documents, and media                      |
| **Site Configuration** | WordPress version, PHP info, and system details                       |

## **System Requirements**

-  **WordPress:** 5.0 or higher
-  **PHP:** 7.4 or higher
-  **PHP Extensions:** ZipArchive (required)
-  **Memory:** 256MB+ recommended
-  **Disk Space:** Sufficient space for backup storage
-  **Permissions:** Write access to wp-content/uploads directory

## **Quick Start Guide**

### Installation

1. **Upload Plugin**

   ```
   Upload the plugin to /wp-content/plugins/auto-backup-one-click-restore/
   ```

2. **Activate Plugin**

   ```
   Go to Plugins → Installed Plugins → Activate "Auto-Backup & Restore"
   ```

3. **Access Dashboard**
   ```
   Navigate to "Backup" in your WordPress admin menu
   ```

### Creating Your First Backup

1. Click **Create Backup Now** on the main dashboard
2. Watch the real-time progress indicator
3. Receive confirmation when backup completes
4. View your backup in the Available Backups table

### Configuring Automatic Backups

1. Go to **Settings** tab
2. Enable **"Automatic Backups"**
3. Choose frequency: Daily, Weekly, or Monthly
4. Select what to backup: Database, Plugins, Themes, Uploads
5. Configure email notifications
6. Save settings

### Restoring a Backup

1. Find your desired backup in the table
2. Click **Restore** button
3. Confirm the restoration (this will overwrite current data)
4. Monitor real-time progress
5. Receive confirmation when complete

## **Configuration Options**

### Backup Settings

-  **Automatic Backups:** Enable/disable scheduled backups
-  **Frequency:** Daily, weekly, or monthly intervals
-  **Maximum Backups:** Limit stored backups (1-50)
-  **Backup Types:** Select components to include

### Email Notifications

-  **Notification Events:** Choose which events trigger emails
-  **Email Format:** HTML or plain text
-  **Custom Email:** Set notification recipient
-  **Event Types:** Success, failure, restore completion

### Security Features

-  **Directory Protection:** Backups stored in protected directory
-  **File Validation:** Strict backup file validation
-  **Access Control:** Admin-only access to all functions
-  **Secure Restoration:** Path validation and security checks

## **Security & Best Practices**

### Security Measures

-  **Protected Storage** - Backups stored in secured directory with .htaccess protection
-  **Input Validation** - All user inputs validated and sanitized
-  **Nonce Protection** - CSRF protection on all forms and AJAX calls
-  **Capability Checks** - Admin-only access to backup functions
-  **Path Validation** - Prevents directory traversal attacks

### Best Practices

1. **Test Restores** - Always test on staging sites first
2. **Regular Backups** - Enable automatic backups for continuous protection
3. **Monitor Storage** - Keep an eye on disk space usage
4. **Email Alerts** - Enable notifications to stay informed
5. **Off-site Copies** - Download important backups for off-site storage

## **Troubleshooting**

### Common Issues

**Backup Creation Fails**

-  Check disk space availability
-  Verify file permissions on wp-content/uploads
-  Increase PHP memory limit if needed

**Restore Process Stuck**

-  Ensure sufficient server resources
-  Check for plugin conflicts
-  Verify backup file integrity

**Email Notifications Not Working**

-  Verify email settings in WordPress
-  Check spam/junk folders
-  Test with different email providers

### Debug Information

The plugin includes a system information panel that shows:

-  Backup directory status
-  PHP configuration
-  Server capabilities
-  Available resources

## **Changelog**

### Version 1.2.0 (Latest)

-  **New:** Modern, professional admin interface
-  **New:** Real-time AJAX operations (no page reloads)
-  **New:** Enhanced progress tracking with live updates
-  **New:** Advanced email notification system
-  **New:** Comprehensive instruction panels
-  **New:** Custom modal dialogs for confirmations
-  **Improved:** Better error handling and validation
-  **Improved:** Enhanced security measures
-  **Improved:** Mobile-responsive design
-  **Improved:** Performance optimizations

### Version 1.0.0

-  Initial release
-  Basic backup and restore functionality
-  Automatic scheduled backups
-  Email notifications
-  Backup management interface

##**Developer Information**

**Developed by:** [Dcastalia Ltd.]  
**Plugin URI:** https://dcastalia.com  
**License:** GPL v2 or later  
**Support:** Professional WordPress plugin development and support

##**Support & Documentation**

-  **Documentation:** Comprehensive guides included in plugin
-  **Support:** Contact developer for professional support
-  **Updates:** Regular updates and feature enhancements
-  **Custom Development:** Available for custom requirements

---

**Protect your WordPress site with Auto-Backup & Restore - Professional backup solution by Dcastalia Ltd.**
