=== Tiny Backup ===
Contributors: ejointjp
Tags: backup, database, files, zip, admin
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.4.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Simple and minimal backup plugin for WordPress. Create database and files backups manually or automatically on a schedule.

== Description ==

Tiny Backup is a WordPress plugin that allows you to create backup files simply and without any complicated configuration.
You can create and download the bare minimum backup with just one click, stress-free.

**Manual Backup**

- Database backup (SQL inside ZIP) with a single click
- Files backup from your uploads folder — select specific subfolders as needed
- Clear progress indicator during backup

**Auto Backup (WP-Cron)**

- Set separate schedules for database and files backups (daily / weekly / monthly)
- Configure time, day of week, or day of month for each schedule
- Manage retention: set max generations for database and files independently
- Email notifications on success and/or failure (sent to the admin email address)

**General**

- No external services; everything runs on your server
- Backup files are stored in `wp-content/tiny-backup`

This plugin is ideal for small to medium sites that need simple, low-overhead backups.

== Installation ==

1. Upload the plugin to the `/wp-content/plugins/` directory or install via the WordPress Plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to Tools → Tiny Backup.
4. Click "Database Backup" or "Files Backup" to run a manual backup, or configure Auto Backup settings.

== Frequently Asked Questions ==

= Where are backups saved? =

Backups are saved to `wp-content/tiny-backup` by default.

= Can I change the destination directory? =

The destination cannot be changed intentionally. If there are many requests, we may add this feature.

= Are scheduled backups supported? =

Yes. As of version 1.3.0, you can configure automatic backups for database and files independently using WP-Cron. Options include daily, weekly, and monthly schedules.

= Does scheduled backup run at the exact time I set? =

WP-Cron is triggered by site visits, so the actual execution time may differ slightly from the configured time on low-traffic sites. The backup will run on the next page load after the scheduled time.

= What folders can I select for file backup? =

You can select the entire uploads folder or individual subfolders directly under it. Subfolders of subfolders are not selectable.

== Screenshots ==

1. Settings screen — Select backup items from the uploads folder
2. Auto Backup settings — Configure separate schedules, retention, and email notifications for database and files
3. Backup screen — Run manual backups and manage backup files

== Changelog ==

= 1.4.0 =

- Show server backup destination path under the Backup files section
- Show Dropbox backup subfolder reference under the Backup files on Dropbox section

= 1.3.0 =

- Added auto backup feature using WP-Cron (daily / weekly / monthly)
- Database and files can be scheduled independently
- Configurable retention (max generations) per backup type
- Email notifications on success and/or failure
- Split manual backup into separate "Database Backup" and "Files Backup" buttons
- Limited file backup scope to uploads folder (direct subfolders selectable)
- Introduced wp-scripts build pipeline for admin assets

= 1.2.0 =

- Internal improvements and refactoring.

= 1.1.1 =

- Bug fix.

= 1.1.0 =

- Added an action link to the plugin list for quick access to the settings page.

= 1.0.0 =

- Initial Release.

== Upgrade Notice ==

= 1.4.0 =

Minor UI improvements: backup destination paths are now shown in the backup file lists.

= 1.3.0 =

Auto backup, separate DB/files schedules, email notifications, and a redesigned backup UI are now available.
