=== Auto-Backup & One-Click Restore ===
Contributors: dcastalialtd
Author: dcastalialtd
Author URI: https://dcastalia.com
Tags: backup, restore, database, security, automatic
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Complete WordPress backup and restore solution with real-time progress tracking, AJAX interface, and email notifications.

== Description ==

**Auto-Backup & One-Click Restore** is a comprehensive backup solution that provides complete WordPress site protection with an intuitive interface. Create, manage, and restore backups with real-time progress tracking and advanced automation features.

= Key Features =

**Modern AJAX Interface**
* Real-time operations without page reloads
* Live progress tracking with detailed status updates
* Smooth animations and clean design
* Mobile-responsive interface for all devices

**Comprehensive Backup Solution**
* Complete site backups including database, plugins, themes, and media
* Selective backup types - choose what to include
* One-click backup creation and restoration
* Automatic backup validation and integrity checks

**Advanced Automation**
* Scheduled automatic backups (daily, weekly, monthly)
* Smart cleanup with configurable backup retention
* Background processing for non-blocking operations
* WordPress cron system integration

**Email Notifications**
* Event-based notifications (success, failure, restore completion)
* HTML and plain text email formats
* Customizable notification events
* Detailed backup reports and status emails

**Security Features**
* Protected backup directory with .htaccess security
* Comprehensive input validation and sanitization
* CSRF protection on all forms and AJAX operations
* Admin-only access with capability checks

= Perfect For =

* **Website Owners** - Reliable site protection with minimal effort
* **Developers** - Backup solution for client sites
* **Agencies** - Manage multiple WordPress installations efficiently
* **Businesses** - Backup and disaster recovery

= What Gets Backed Up =

* **Database** - Complete WordPress database with all content and settings
* **Plugins** - All installed plugins and their configuration files
* **Themes** - Active, inactive, and child themes
* **Media Library** - All uploaded files, images, and documents
* **System Info** - WordPress version, PHP details, and configuration

= Advanced Features =

**Real-Time Interface**
* Live progress bars with detailed status messages
* Instant data updates without page refreshes
* Modal dialogs for confirmations
* Smooth fade animations and visual feedback

**Smart Management**
* Automatic old backup cleanup
* Configurable backup retention (1-50 backups)
* Backup size monitoring and disk space checks
* Comprehensive system information dashboard

**Error Handling & Recovery**
* Comprehensive error handling with user-friendly messages
* Automatic retry mechanisms for failed operations
* Detailed logging for troubleshooting
* Recovery suggestions for common issues

= System Requirements =

* WordPress 5.0 or higher
* PHP 7.4 or higher (PHP 8.0+ recommended)
* ZipArchive PHP extension (required)
* 256MB+ PHP memory limit (512MB+ recommended)
* Write permissions for wp-content/uploads directory
* Sufficient disk space for backup storage

== Installation ==

= Automatic Installation =

1. Log in to your WordPress admin dashboard
2. Go to Plugins → Add New
3. Search for "Auto-Backup & One-Click Restore"
4. Click "Install Now" and then "Activate"
5. Navigate to "Backup" in your admin menu

= Manual Installation =

1. Download the plugin ZIP file
2. Upload to `/wp-content/plugins/auto-backup-one-click-restore/` directory
3. Activate through the 'Plugins' menu in WordPress
4. Go to "Backup" to start using the plugin

= Initial Setup =

1. **Configure Settings** - Go to Settings tab to configure automation
2. **Set Email Notifications** - Enable email alerts for backup events
3. **Create First Backup** - Click "Create Backup Now" to test
4. **Enable Automation** - Set up scheduled backups for continuous protection

== Frequently Asked Questions ==

= How does the real-time interface work? =

The plugin uses AJAX technology to provide a seamless experience. All operations (backup, restore, delete) happen without page reloads, with live progress tracking and instant data updates.

= What makes this plugin special? =

This plugin includes advanced features like real-time AJAX interface, comprehensive email notifications, modern design, enhanced security, and professional-grade error handling.

= How large can my backups be? =

The plugin can handle sites of various sizes. For very large sites (1GB+), you may need to adjust server settings (memory limit, execution time). The plugin includes system requirements checking.

= Where are backups stored? =

Backups are stored in `/wp-content/uploads/auto-backup-one-click-restore/` with .htaccess protection. The directory is secured against direct access for enhanced security.

= Can I restore individual components? =

Currently, the plugin performs complete site restoration. This ensures data consistency and prevents conflicts between different backup components.

= How do automatic backups work? =

The plugin integrates with WordPress cron system to create backups automatically. You can choose daily, weekly, or monthly frequency based on your site's update frequency.

= Is it safe to restore a backup? =

Yes, but always test on a staging site first. The plugin includes safety warnings and confirmation dialogs. Restoration overwrites current files and database.

= What happens to old backups? =

The plugin automatically manages backup retention based on your "Maximum Backups" setting (1-50). Older backups are automatically deleted to save disk space.

= Can I get email notifications? =

Yes! The plugin includes email notification system with customizable events, HTML/plain text formats, and detailed backup reports.

= Does this work with large sites? =

Yes, the plugin is optimized for sites of all sizes. It includes memory management, progress tracking, and can handle large databases and file collections.

== Screenshots ==

1. **Modern Dashboard** - Clean interface with statistics and real-time progress
screenshot-1.png
2. **Settings Page** - Comprehensive configuration with modern form design
screenshot-2.png
3. **Real-Time Progress** - Live backup creation with detailed status updates
screenshot-2.png
4. **Email Notifications** - Email alerts with detailed reports
screenshot-3.png
5. **Backup Management** - Clean table interface with one-click actions
screenshot-3.png
6. **System Information** - Server and plugin status dashboard
screenshot-4.png

== Filters ==

Developers can customize notifications via filters:

- `abocr_allow_notifications( $allow, $context, $success )`
- `abocr_email_to( $to, $context, $success )`
- `abocr_email_subject( $subject, $context, $success )`
- `abocr_email_message( $message, $context, $success )`
- `abocr_email_headers( $headers, $context, $success )`

Where `$context` is `backup` or `restore` and `$success` is boolean.

== Changelog ==

= 1.0.0 - 2024 =
**Initial Release: Complete Backup Solution**

**Features:**
* 🎨 Modern, clean admin interface
* ⚡ Real-time AJAX operations - no page reloads
* 📊 Live progress tracking with detailed status messages
* 📧 Email notification system with HTML/plain text options
* 🔔 Custom modal dialogs for confirmations
* 🛡️ Enhanced security with validation and CSRF protection
* 📈 Progress bars with visual feedback
* 📋 Backup file validation and integrity checks
* 🔄 Automatic backup scheduling and cleanup
* 📱 Mobile-responsive design
* 🌐 Internationalization (i18n) support

**Technical Features:**
* WordPress cron integration
* Protected backup directory
* Comprehensive error handling
* Rate limiting for AJAX calls
* File operation security
* Memory and time limit management

== Support & Development ==

**Support:** Available through WordPress.org support forums

**Development:** Open source plugin developed with WordPress best practices

**Contributions:** Welcome! Please follow WordPress coding standards

**License:** GPL v2 or later - same as WordPress

== Credits ==

Developed by Dcastalia Ltd.

Built with WordPress best practices and modern web technologies

---

**Protect your WordPress site with Auto-Backup & One-Click Restore - Complete backup solution**
