WS R2 Backup

v1.1.0WordPressWP 7.1PHP 7.4+GPL-2.0-or-later

Scheduled full-site backups of a WordPress site, the database plus the wp-content folder, streamed to Cloudflare R2 or any S3-compatible bucket as one .tar.gz. The work is split into short ticks that resume after a PHP time limit or a crash, old backups are pruned by age, and a failure emails the admin. No bundled SDK and no Composer dependencies: the AWS Signature V4 signer and the multipart uploader are built in.

Download v1.1.0

Features

Restoring from a backup is not implemented. Download the archive and restore it by hand.

How it works

A backup is a state machine: init, dump the database, archive the files, upload, finalize. Each tick works for 20 seconds, saves its cursor and spawns the next tick through WP-Cron and a loopback request. One worker holds an atomic lock with a heartbeat; a worker that stops beating is taken over. The tar archive grows by one gzip member per tick, and the size after each flushed tick is recorded so a killed tick can be cut off cleanly. Large tables are read by primary key, so a table with millions of rows costs the same per batch from the first row to the last. Every S3 request is retried three times on a timeout, a 5xx or a 429.

Requirements

Install

  1. Download the zip above.
  2. In WordPress go to Plugins, Add New, Upload Plugin, and upload it.
  3. Activate WS R2 Backup from the Plugins screen.
  4. R2 Backup, Bucket Settings: enter the Cloudflare R2 (or generic S3) credentials, use Test connection, Save.
  5. R2 Backup, Dashboard: set the frequency, the retention and the excluded paths, Save. Back up now runs the first backup.

Updates are self-hosted: the plugin reads its Update URI header and checks https://websqu.ad/updates/ws-r2-backup.json. New versions show up in the standard WordPress updates screen.

Good to know

Changelog

websquad — brandsquad OÜ, Estonia. Support: [email protected]

WP Plugins · Homepage