Skip to content
Sign In Create account

Digipacket Backup Toolkit

Copies your files and your database into a single archive, puts that archive back when you need it, and can seal it with AES-256-GCM so a stolen copy is worth nothing without your key.

v2.0.1 470.9 KB GPL-2.0-or-later

Digipacket Backup Toolkit

What it does

Shared hosting kills long requests, so every operation is cut into slices that fit inside max_execution_time and resume where they stopped — the file scan, the SQL dump, the compression, the encryption, the extraction and the row-by-row replay of the database. It makes no outbound connection and has no telemetry.

  • Full site or one part

    Whole site, database only, wp-content, plugins, themes or uploads, with the size, duration and checksum reported as it runs.

  • Restore with a rollback

    A safety snapshot is taken before a byte is written, and a failure half way through rolls the site back to it automatically.

  • AES-256-GCM

    Over the whole container, with a keyring that survives rotation. Existing archives can be sealed afterwards and sealed ones opened.

  • Scheduled runs

    Hourly to monthly or a custom cron expression, with retention by count or by age. Deleting a schedule never deletes its backups.

  • Imports are verified, not trusted

    Signature, checksums, manifest, directory traversal, Zip Slip and symbolic links are all checked before an entry is published.

  • Archives outside the plugin folder

    They live in wp-content/digipacket-backups/, because WordPress deletes a plugin's own folder before installing a new version.

What it needs

WordPress
6.8 or newer
PHP
8.2 or newer
PHP extensions
json, zip, hash, openssl

Install it

The whole install, in one command

Downloads, checks the file against the SHA-256 below, unpacks it into your plugins directory and cleans up after itself. Any step that fails stops the rest.

bash
cd /path/to/wordpress/wp-content/plugins \
  && curl -fL -O https://github.com/digipacket-net/Digipacket-Backup-Toolkit/releases/download/V2.0.1/digipacket.2.0.1.zip \
  && echo "e1b920b3161d70721d00abf63990268708d1e40451863546176db7a4bfb286c8  digipacket.2.0.1.zip" | sha256sum -c - \
  && unzip -q digipacket.2.0.1.zip \
  && rm digipacket.2.0.1.zip

Activate it

With WP-CLI. Without WP-CLI, the plugin is now listed under Plugins → Installed Plugins and the button there does the same thing.

bash
wp plugin activate digipacket --path=/path/to/wordpress

Why the commands look like this

  • Why -f is not optional

    Without it, curl writes the server's error page into your file and exits 0. You unzip an HTML document into wp-content/plugins and WordPress shows a broken plugin. With -f, curl writes nothing and exits 22.

  • Why the checksum is printed here

    A hash served next to the file only proves the download was not corrupted in transit. This page is a second channel: if the number here and the number on the file agree, both would have had to be changed.

  • Why the steps are chained with &&

    A semicolon runs the next command whether or not the last one worked. With &&, a failed download or a failed checksum stops the chain before anything is written into your plugins directory.

Verify the download

Version
2.0.1 (V2.0.1)
File
digipacket.2.0.1.zip
Size
470.9 KB 482,229 bytes
SHA-256
e1b920b3161d70721d00abf63990268708d1e40451863546176db7a4bfb286c8
Published
2 September 2026

Check what you downloaded

Prints OK, or names the file and exits non-zero. Run it before you unpack anything.

bash
# GNU coreutils, on a Linux server
echo "e1b920b3161d70721d00abf63990268708d1e40451863546176db7a4bfb286c8  digipacket.2.0.1.zip" | sha256sum -c -

# macOS, and anywhere sha256sum is missing
echo "e1b920b3161d70721d00abf63990268708d1e40451863546176db7a4bfb286c8  digipacket.2.0.1.zip" | shasum -a 256 -c

Always the newest release

The pinned URL above is the one to use in documentation and in a change you want to be able to repeat. In a provisioning script you usually want whatever is current, and there is a trap in the obvious way of asking for it.

The obvious URL breaks on the next release

GitHub serves /releases/latest/download/<file>, but the file name here carries the version. The moment a new version ships, that URL is a 404 — and because it 404s rather than serving an older file, a script that omits -f will happily install an error page.

Ask the API which asset the latest release actually publishes, then download that:

Whatever the newest release is

Asks the API for the asset the latest release actually publishes, then downloads that — so it keeps working when the version and the file name change.

bash
url=$(curl -fsSL https://api.github.com/repos/digipacket-net/Digipacket-Backup-Toolkit/releases/latest \
  | grep -o '"browser_download_url": *"[^"]*\.zip"' \
  | cut -d'"' -f4)

curl -fL -O "$url"

Update it

Removing the folder first is safe: archives live in wp-content/digipacket-backups/ and settings live in the database, neither of which is inside the plugin directory.

Update an existing install

Same chain, with the old directory removed before the new one is written. Unzipping over the top would leave files from the previous version behind.

bash
cd /path/to/wordpress/wp-content/plugins \
  && curl -fL -O https://github.com/digipacket-net/Digipacket-Backup-Toolkit/releases/download/V2.0.1/digipacket.2.0.1.zip \
  && echo "e1b920b3161d70721d00abf63990268708d1e40451863546176db7a4bfb286c8  digipacket.2.0.1.zip" | sha256sum -c - \
  && rm -rf digipacket \
  && unzip -q digipacket.2.0.1.zip \
  && rm digipacket.2.0.1.zip \
  && wp plugin activate digipacket --path=/path/to/wordpress

Remove it

Remove it

Deactivates first, so WordPress runs the plugin's own deactivation code rather than having the directory disappear underneath it.

bash
wp plugin deactivate digipacket --path=/path/to/wordpress \
  && wp plugin delete digipacket --path=/path/to/wordpress

What it does not do

Written down for the same reason as everything else on this page: finding out after you have installed it is worse.

  • No export to Google Drive, Dropbox, S3 or OneDrive yet.
  • No incremental backups — every run produces a complete archive.
  • Nginx ignores the .htaccess written at activation, so on Nginx the equivalent rule for the backups directory has to be added by hand.

If a command fails

curl: (22) The requested URL returned error: 404

The file name or the version in the URL is wrong. Copy the command again from this page rather than editing the version by hand — and note that curl wrote nothing, so there is nothing to clean up.

WARNING: 1 computed checksum did NOT match

Do not install it. The download was truncated, or it is not the file this page describes. Delete it and download it again; if it fails twice, write to us before running it.

The plugin appears but will not activate

Almost always the PHP version. Both plugins state their minimum above and refuse to run below it rather than failing halfway — check with php -v on the same server.

Stuck on an install

Send us the command and what it printed.

The output of the command that failed tells us more than a description of it does. Paste it in — there is nothing secret in a download.