=== Swift Backup ===
Contributors: pixarlabs, litonarefin
Tags: backup, restore, database backup, cloud storage, migration
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Complete WordPress backup solution with cloud storage, scheduled backups, and one-click restore. Modern UI with real-time progress tracking.

== Description ==

**Swift Backup** is a modern, lightweight WordPress backup and restore plugin designed to make website backups effortless. Create full site backups, schedule automated backups, and restore your website with just a few clicks.

= KEY FEATURES =

🚀 **One-Click Backup & Restore**
Create complete website backups in seconds. Restore your entire site or selected components with a single click.

📦 **Selective Backup Options**
Choose exactly what to backup - files only, database only, or complete site backup.

☁️ **Cloud Storage Integration**
Automatically upload backups to popular cloud storage providers:

* Amazon S3
* Google Drive
* Dropbox
* OneDrive
* FTP/SFTP

⏰ **Scheduled Automated Backups**
Set it and forget it! Schedule automatic backups:

* Hourly
* Daily
* Weekly
* Monthly

📊 **Real-Time Progress Tracking**
Monitor backup and restore operations with live progress indicators. Know exactly what's happening.

🎨 **Modern React-Based Interface**
Beautiful, intuitive admin interface built with React and Tailwind CSS. Fast, responsive, and easy to use.

📥 **Drag & Drop Restore**
Simply drag and drop your backup file to restore. No complicated processes.

🔒 **Secure & Reliable**
* Encrypted storage credentials
* Secure file handling
* Nonce verification
* Capability checks
* Input sanitization

= PERFECT FOR =

* **Site Owners**: Keep your website safe with regular automated backups
* **Developers**: Quick backup before updates or changes
* **Agencies**: Manage backups for multiple client sites
* **Migrations**: Easy site migration to new hosting

= BACKUP INCLUDES =

* WordPress database (all tables)
* Themes and plugins
* Uploads and media files
* WordPress core files (optional)
* Custom files and directories

= FILE FORMAT =

Swift Backup uses `.swftbkp` files - ZIP archives with JSON metadata for easy identification and management.

= REQUIREMENTS =

* WordPress 5.0 or higher
* PHP 7.4 or higher
* MySQL 5.6 or higher
* ZipArchive PHP extension
* Sufficient disk space for backups
* cURL extension (for cloud storage)

= PRO VERSION (COMING SOON) =

* Multi-site support
* Incremental backups
* Additional cloud providers
* Priority support
* Advanced scheduling options
* Backup encryption
* Email reports

== Installation ==

= AUTOMATIC INSTALLATION =

1. Log in to your WordPress admin panel
2. Navigate to **Plugins → Add New**
3. Search for **"Swift Backup"**
4. Click **"Install Now"**
5. Click **"Activate"** after installation completes
6. Go to **Swift Backup** in the admin menu

= MANUAL INSTALLATION =

1. Download the plugin ZIP file
2. Log in to WordPress admin panel
3. Navigate to **Plugins → Add New → Upload Plugin**
4. Click **"Choose File"** and select the downloaded ZIP
5. Click **"Install Now"**
6. Activate the plugin
7. Go to **Swift Backup** in the admin menu

= AFTER ACTIVATION =

1. Go to **Swift Backup → Backups**
2. Click **"Create New Backup"**
3. Choose backup options (files, database, or both)
4. Click **"Start Backup"**
5. Wait for completion (progress shown in real-time)

For scheduled backups:
1. Go to **Swift Backup → Schedule**
2. Click **"Add New Schedule"**
3. Configure frequency and options
4. Save schedule

== Frequently Asked Questions ==

= How do I create my first backup? =

After activating the plugin:

1. Go to **Swift Backup → Backups**
2. Click **"Create New Backup"**
3. Select what to include (files, database, or both)
4. Click **"Start Backup"**
5. Monitor progress in real-time

= Where are backups stored? =

Backups are stored in `/wp-content/uploads/swift-backups/` by default. You can also configure cloud storage to automatically upload backups to Amazon S3, Google Drive, Dropbox, OneDrive, or FTP.

= How do I restore from a backup? =

**Method 1: Existing Backup**
1. Go to **Swift Backup → Backups**
2. Find your backup in the list
3. Click the **"Restore"** button
4. Choose what to restore (files, database, or both)
5. Click **"Start Restore"**

**Method 2: Upload Backup**
1. Go to **Swift Backup → Restore**
2. Drag and drop your `.swiftbackup` file
3. Click **"Start Restore"**

= Can I schedule automatic backups? =

Yes! Go to **Swift Backup → Schedule** and create automated backup schedules with options for hourly, daily, weekly, or monthly backups.

= Does it work with large websites? =

Yes! Swift Backup is designed to handle large websites efficiently. It uses:

* Chunked processing to avoid memory limits
* Time-limit management for long operations
* Progress tracking for transparency
* Resume capability for interrupted backups

= Which cloud storage providers are supported? =

Currently supported:

* Amazon S3
* Google Drive
* Dropbox
* OneDrive
* FTP/SFTP servers

More providers coming in future updates!

= Is my data secure? =

Absolutely! Swift Backup implements:

* Encrypted storage of cloud credentials
* Nonce verification for all actions
* Capability checks (only admins can access)
* Input sanitization and output escaping
* Secure file handling
* No external requests (except to configured cloud storage)

= Can I exclude files from backups? =

Yes! You can specify custom exclusion patterns. By default, these are excluded:

* Cache directories
* node_modules
* .git directories
* debug.log files
* Other backup plugin directories

= What file format does it use? =

Swift Backup creates `.swftbkp` files - standard ZIP archives with JSON metadata. These can be opened with any ZIP utility if needed.

= How much disk space do I need? =

Backup files can be large depending on your site. As a general rule:

* Small site (< 100MB): 200MB free space recommended
* Medium site (< 1GB): 2GB free space recommended
* Large site (> 1GB): 2-3x your site size recommended

= Can I download backups? =

Yes! From **Swift Backup → Backups**, click the download icon next to any backup to download it to your computer.

= Does it backup the database? =

Yes! Swift Backup creates complete SQL dumps of your WordPress database, including all tables with the WordPress prefix.

= Will it slow down my website? =

No! Backups run in the background and are optimized to minimize server load. Scheduled backups typically run during low-traffic periods.

= Can I use it on localhost? =

Yes! Swift Backup works perfectly on local development environments.

= Is multisite supported? =

Multisite support is coming in the Pro version.

= How do I get support? =

* **Free Support**: Use the [WordPress.org support forum](https://wordpress.org/support/plugin/swift-backup/)
* **Documentation**: Visit our [documentation](https://pixarlabs.com/swift-backup/docs)
* **Bug Reports**: Report issues on [GitHub](https://github.com/pixarlabs/swift-backup/issues)

== Screenshots ==

1. Dashboard - Overview of your backups and quick actions
2. Backups - List all backups with actions
3. Create Backup - Choose what to backup
4. Real-time Progress - Monitor backup creation
5. Restore - Upload or select backup to restore
6. Schedule - Configure automated backups
7. Storage - Manage cloud storage connections
8. Settings - Configure plugin options


== Upgrade Notice ==

= 1.0.0 =
Initial release of Swift Backup. Create complete WordPress backups with cloud storage integration and scheduled automation.

== Privacy Policy ==

Swift Backup does NOT collect any user data. The plugin:

* Does NOT send data to external servers (except your configured cloud storage)
* Does NOT track users
* Does NOT use cookies
* Does NOT collect analytics
* Stores cloud storage credentials locally in your WordPress database (encrypted)

All backup operations happen entirely on your server and your configured cloud storage.

== Support ==

Need help? We're here for you!

* **Support Forum**: [wordpress.org/support/plugin/swift-backup](https://wordpress.org/support/plugin/swift-backup/)
* **Documentation**: [pixarlabs.com/swift-backup/docs](https://pixarlabs.com/swift-backup/docs)
* **Bug Reports**: [github.com/pixarlabs/swift-backup/issues](https://github.com/pixarlabs/swift-backup/issues)

== Source Code ==

This plugin includes minified JavaScript and CSS files for production use. The original source code is available:

= React Admin App (admin-app/) =
The main admin interface is built with React, TypeScript, and Tailwind CSS. Source files are located in the `admin-app/src/` directory.

**Build Tools:**
* Vite (build tool)
* TypeScript (type-safe JavaScript)
* Tailwind CSS (utility CSS framework)
* React 18

**To build from source:**
1. Navigate to the `admin-app/` directory
2. Run `yarn install` to install dependencies
3. Run `yarn build` to create production files

The built files are output to `assets/js/swift-backup-admin.js` and `assets/css/swift-backup-admin.css`.

= Third-Party Libraries =
* **React** - MIT License - https://reactjs.org
* **Tailwind CSS** - MIT License - https://tailwindcss.com
* **Radix UI** - MIT License - https://www.radix-ui.com
* **TanStack Query** - MIT License - https://tanstack.com/query
* **Lucide Icons** - ISC License - https://lucide.dev
* **Shadcn/ui** - MIT License - https://ui.shadcn.com

All source code is included in the plugin package under the `admin-app/src/` directory.

== Credits ==
* UI Components: [Shadcn/ui](https://ui.shadcn.com)
* Icons: [Lucide React](https://lucide.dev)
