# WP Excel Sync

WP Excel Sync is a WordPress plugin for importing, exporting and backing up database tables using Excel files. It automatically creates backups, provides an import preview and logs all actions.

## Installation

1. Download the plugin directory as a ZIP file.
2. In WordPress go to **Plugins → Add New → Upload Plugin**, select the ZIP file and install it.
3. Activate the plugin after installation.

Alternatively, copy the unpacked folder into the `wp-content/plugins/` directory.

## Requirements

- WordPress with PHP **7.4** or higher.
- Write permissions for the `storage/` directory inside the plugin. This directory is used for temporary files, exports and backups.

## Usage

After activation the **WP Excel Sync** menu item appears in the WordPress admin menu.

### Import

1. In the **Import** tab select a target table and upload the desired Excel file (`.xlsx`).
2. Check the data in the preview and then confirm the import.
3. A backup of the table is created automatically before each import.

### Export

1. In the **Export** tab select one or more tables.
2. The tables are generated as Excel files and bundled into a ZIP archive for download.

### Backup & Restore

- Use the **Restore from Backup** section to restore previously created backups.
- In the **Delete Backups** section you can permanently remove backups you no longer need.

