=== Gracewell Backup Manager ===
Contributors: gracewell89
Tags: backup, database, files, security, wp-content
Requires at least: 5.3
Tested up to: 7.1
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Simple and secure WordPress website backup solution. Creates complete backups of your database and wp-content files.

== Description ==

Gracewell Backup Manager creates complete backups of your WordPress website including the database and all wp-content files (plugins, themes, uploads). Backups are processed in the background via WP-Cron and stored securely on your server.

**Features:**

* Full database and file backup (wp-content files)
* Background processing via WP-Cron
* Real-time progress bar with ETA
* Secure local storage with .htaccess and unpredictable file naming
* Customer support error log & one-click diagnostic report export
* In-admin log viewer with live refresh, copy, and clear controls
* Automatic log rotation and sensitive credential redaction
* Authenticated downloads with path validation
* Soft-delete with audit trail
* Translation-ready (gracewell-backup-manager text domain)
* Clean, responsive admin dashboard under Tools → Gracewell Backup

== Installation ==

1. Upload the `gracewell-backup-manager` directory to `/wp-content/plugins/`.
2. Activate the plugin through the Plugins menu.
3. Navigate to **Tools → Gracewell Backup** in the admin sidebar.

== Frequently Asked Questions ==

= Where are backups stored? =

Backups are stored in `wp-content/uploads/gracewell-backup-manager/storage/`. The directory is protected from direct access.

= How do I send logs to customer support? =

Click the "Support Log" button in the upper right corner of the Gracewell Backup dashboard, then click "Download Support Log (.txt)" and attach the downloaded file when contacting support.

= What happens when I delete the plugin? =

The database table and options are removed. Backup ZIP files are preserved — remove them manually if no longer needed.

= Why is my backup stuck on Pending? =

Ensure WP-Cron is enabled. Visit any page on your site to trigger cron, or set up a system cron job.

== Changelog ==

= 1.0.0 =
* Initial release
* Admin dashboard with Site Information panel
* Backup History table with real-time progress bar and ETA
* Manual backup creation (Database + Files)
* Customer Support Log viewer modal in admin dashboard
* One-click Technical Diagnostic Report download (.txt) for support tickets
* Persistent file logging to uploads/gracewell-backup-manager/logs/ with .htaccess protection
* Automatic log rotation (5MB cap) and credential/password redaction
* Copy to Clipboard and Clear Log controls with user confirmation
* Step-by-step diagnostic logging for database export, file archiving, and verification
* WP-Cron background processing
* Secure download with path validation
* Secure delete with realpath() validation
* Soft-delete support with audit trail
* Dynamic pagination with rows per page selector
* In-admin changelog viewer modal
