Extensions Database 3.2 / 3.3 / 4.0 ⇒ 3.3 & 4.0 Backup Fetch

3.2 & 3.3 & 4.0
Post Reply Previous topicNext topic
User avatar

Topic Author
dmzx
Founder
Founder
Posts: 7035
Joined: 13 Jan 2014, 21:45
582 given 4
Starter · Lv 8

Backup Fetch

Post by dmzx »

Extension Name: Backup Fetch

Author: [hidden]

Extension Description:
Backup Fetch - Fetch the newest server backup every day from a directory outside the board, keep a local copy, send it to SFTP, FTP(S), WebDAV, S3 or rsync and download it from the ACP

[hidden] [hidden]

[hidden]
- Removing old uploads now keeps the newest N different files instead of the newest N log rows, so sending the same backup twice (Fetch now) no longer leaves fewer files than the number set.

[hidden]
- The rsync destination can remove old backups too: the new "Archives to keep there" setting (0 = never remove, the default for existing settings) keeps the newest files that Backup Fetch synchronised itself and deletes the older ones at the destination, only when the newest backup is a single file. Other files in the destination folder are never touched, and sub folders are left alone.

[hidden]
- Lock, temporary and partial files (`.lock`, `.tmp`, `.temp`, `.part`, `.partial`, `.crdownload`, `.filepart`), empty files and files that changed in the last 30 seconds are no longer taken as the newest backup. Before, the `job.lock` file that the Backup extension touches during a backup could be picked instead of the backup ZIP.

[hidden]
- First release.
- Fetches the newest server backup every day from a folder outside the board and keeps a local copy (a ZIP of the newest backup folder, or a copy of the newest backup file), with download and delete in the ACP.
- External destinations, as many as you like, each with a connection test: SFTP, FTP and FTPS, WebDAV, S3 and compatible (large archives in parts) and rsync over SSH or to an rsync daemon.
- Retention per destination; only archives Backup Fetch uploaded itself are removed.
- A run log with the result per destination and a server check.
- Founder-only: other administrators with the permission cannot open it.
- Private tool for your own server: the rsync destination uses `proc_open()`.

Screenshots:
[hidden]
Overview with the source folder, newest server backup, schedule, last check and the Run now button

[hidden]
The local copies that are kept, ready to download or delete

[hidden]
Run history showing what was sent to each destination, including a failed upload

[hidden]
Diagnostics for PHP user, open_basedir, ZipArchive, curl, proc_open and rsync

[hidden]
Confirmation before a local copy is deleted

[hidden]
Setup in four steps with a preview of the backups in the source folder

[hidden]
Local folder, number of copies to keep and compression

[hidden]
SFTP destination

[hidden]
FTP and FTPS destination

[hidden]
WebDAV destination for Nextcloud and similar

[hidden]
S3 destination with endpoint, bucket and prefix

[hidden]
rsync destination over SSH or to an rsync daemon

[hidden]
Daily schedule and the cron line to run it

[hidden]
The folder browser to pick the source folder

Extension Download:
[hidden]

Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `backupfetch`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `backupfetch` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/backupfetch/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Backup Fetch` under the Disabled Extensions list, and click its `Enable` link.
Links, images and downloads in this post are hidden Log in or register, then thank this post to see them. Login Register
cgozzie75, Peralta, martin thanked this post
Last edited by dmzx on 28 Oct 2026, 13:57, edited 3 times in total.
Reason: Screenshots added

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 7035
Joined: 13 Jan 2014, 21:45
582 given 4
Starter · Lv 8

Re: Backup Fetch

Post by dmzx »

First post updated.

Post Reply Previous topicNext topic