DB Backup by Fairshare.tech

外掛說明

DB Backup by Fairshare.tech lets you create automated WordPress database backups on your preferred schedule. It uses mysqldump if available for fast and reliable backups, and falls back to a PHP-based method if mysqldump is unavailable.

Backups are stored securely in your wp-content/uploads/db_backup/ directory, and you can choose to have them emailed to your admin email address. The plugin provides a settings page for configuration and supports triggering backups via a real cron job for reliability.

Features

  1. Flexible backup frequency: Daily, Weekly, or Monthly.
  2. Backups saved in wp-content/uploads/db_backup/ with timestamped filenames.
  3. Option to email backups to the admin email address.
  4. Uses mysqldump if available, with PHP fallback.
  5. No dependency on WP-Cron—supports real cron jobs via a secure endpoint.
  6. Secure authentication using unique access key for cron URL.
  7. Simple configuration via WordPress Settings page.

安裝方式

  1. Upload the db-backup-by-fairshare folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Settings DB Backup to configure:
    • Backup frequency (Daily, Weekly, Monthly)
    • Email backup option (Yes / No)
  4. If you want real cron jobs:
    • Copy the cron URL from the settings page.
    • Add it to your hosting cron manager or an external service (e.g., EasyCron).

Requirements:
mysqldump installed on the server (optional, for faster backups).
exec() function enabled in PHP (required for mysqldump method).
– If exec() or mysqldump is not available, the plugin uses a PHP-based backup.

常見問題集

Where are backups stored?

All backups are stored in wp-content/uploads/db_backup/ with a timestamped filename.

Can I change the backup schedule?

Yes. Go to Settings DB Backup and choose Daily, Weekly, or Monthly.

Can I disable email notifications?

Yes. On the settings page, select No for the “Email Backup” option.

Does it work without mysqldump?

Yes. If mysqldump or exec() is not available, the plugin uses a PHP-based fallback to create the backup.

How do I set up a real cron job?

On the settings page, copy the provided URL and add it to your hosting control panel’s cron job scheduler or use an external service like EasyCron.

Is the cron URL secure?

Yes. The URL contains a unique 32-character access key that’s generated during plugin activation. This key doesn’t expire and provides excellent security for your backup endpoint.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈DB Backup by Fairshare.tech〉的開發相關工作。

參與者

將〈DB Backup by Fairshare.tech〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.2

  • CRITICAL FIX: Removed nonce dependency to prevent backup failures after 24 hours.
  • Simplified security model using only unique access key.
  • Improved long-term reliability for scheduled backups.
  • Updated documentation to reflect security changes.

1.0.1

  • Added settings page for backup frequency and email options.
  • Added support for real cron jobs via secure URL.
  • Fallback to PHP-based backup if mysqldump is unavailable.
  • Backups stored in wp-content/uploads/db_backup/.

1.0.0

  • Initial release with weekly backup and email delivery.