=== MagicWP Backup Restore and Migration ===
Contributors: magicwpio
Tags: backup, restore, migration, clone, database
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Backup, restore, and migrate any WordPress site — chunked, resumable, and shared-hosting friendly.

== Description ==

MagicWP Backup is a full backup, restore, and migration engine for WordPress, built for large sites and low-resource hosting.

* Chunked, resumable backups (database + files) that fit shared-hosting time and memory limits.
* Safe restore with integrity checks, a destructive-action confirmation, automatic table-prefix remapping, and serialized-safe URL search/replace.
* One-click site-to-site migration with hashed transfer tokens.
* Configurable exclusions (quick toggles + file-size limit), scheduled cleanup, and a structured log viewer with export.
* PSR-4 architecture (Composer-free), REST API at `/wp-json/magicwp-backup-restore-migration/v1/` with capability + nonce protection.

== Installation ==

1. Upload the `magicwp-backup-restore-migration` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Open **MagicWP Backup** in the admin sidebar and run the system self-test.

== Screenshots ==

1. Dashboard — environment check, backups summary, last backup, and a one-click system self-test.
2. Create Backup — start a full chunked, resumable backup and manage existing backups (manifest / delete).
3. Restore — restore from a backup on this site (or upload an archive) with a destructive-action warning.
4. Migration — generate a transfer token to send this site, or paste a token and source URL to receive one.
5. Migration — the generated transfer token and source URL, shown in a modal with Copy buttons.
6. Settings — exclusions: quick toggles, additional excluded paths, and an "exclude files larger than" limit.
7. Logs — the structured backup/restore/migration log viewer with level filtering and CSV export.

== Changelog ==

= 1.0.0 =
* Initial public release.
* Backups: chunked, resumable streaming archive of database and files, sized to fit shared-hosting time and memory limits.
* Restore: integrity validation, confirm-gated destructive restore, automatic table-prefix remapping, and serialized-safe URL search/replace (keeps the destination `wp-config.php`).
* Migration: one-click site-to-site transfer with hashed transfer tokens and a token-gated download endpoint.
* Exclusions: quick toggles (Plugins, Themes, Uploads, Must-use plugins, Cache) plus an "exclude files larger than (MB)" limit.
* Maintenance: scheduled cleanup cron, structured log viewer with export, and a system self-test.
* Architecture: PSR-4 (Composer-free), REST API at `/wp-json/magicwp-backup-restore-migration/v1/` with capability + nonce protection.
