79 lines
3.0 KiB
Markdown
79 lines
3.0 KiB
Markdown
# URBM – Unraid Restic Backup Manager
|
||
|
||
**English** | [Deutsch](README.de.md)
|
||
|
||
URBM is a native Unraid 7 plugin that manages encrypted, deduplicated and
|
||
versioned backups with [Restic](https://restic.net/), plus scheduled direct Rsync
|
||
copies. It is an independent community plugin, not affiliated with or endorsed by
|
||
Lime Technology, Inc.
|
||
|
||
## Features
|
||
|
||
- Backup sources: shares, appdata, Docker metadata and data (bind mounts and
|
||
named volumes), VM definitions and disks, the Unraid boot drive
|
||
- Destinations: local, SFTP, SMB or NFS
|
||
- USB flash jobs back up the `/boot` file tree and optionally the whole boot
|
||
device as `urbm-usb-flash.img` for block-level recovery
|
||
- Rsync jobs with folder browsers and checkboxes for overwrite, deletion,
|
||
permissions, ownership, timestamps, links, ACLs, xattrs, checksums and dry run;
|
||
space preflight before a real transfer
|
||
- Live or stop mode for Docker/VM jobs, schedules, repository checks, restores,
|
||
notifications, run logs in the WebGUI
|
||
|
||
## Requirements
|
||
|
||
Unraid 7. Docker and VM jobs use the standard `docker` and `virsh` commands;
|
||
SMB/NFS destinations use Unraid's mount helpers.
|
||
|
||
## Installation
|
||
|
||
In the Unraid WebGUI open **Plugins → Install Plugin** and paste the manifest URL:
|
||
|
||
```text
|
||
<repository-url>/raw/branch/main/dist/urbm.plg
|
||
```
|
||
|
||
Then open the URBM page in the WebGUI, add a destination (Restic repository) and
|
||
create jobs. Configuration is kept when the plugin is uninstalled, so repositories
|
||
stay recoverable.
|
||
|
||
## Configuration
|
||
|
||
Everything is done in the WebGUI. Persistent configuration and AES-256-GCM
|
||
encrypted secrets live in `/boot/config/plugins/urbm`; runtime secrets and
|
||
temporary metadata live below `/run/urbm` and are removed after each operation.
|
||
|
||
## Security
|
||
|
||
- The daemon `urbmd` has no TCP listener; the WebGUI page proxies authenticated
|
||
requests to the Unix socket `/run/urbm/urbm.sock`.
|
||
- Restic passwords are passed through root-only temporary files, never on the command line.
|
||
- Automatic unlock at boot protects against accidental disclosure, not against
|
||
root compromise or theft of the whole flash drive.
|
||
- In-place restores need explicit confirmation; protected system roots are refused.
|
||
- Live backups do not guarantee database consistency; use stop mode for that.
|
||
The standard repository check is not a full restore test.
|
||
|
||
## Development
|
||
|
||
Requirements: Go 1.23+, Node.js, `curl`, `bzip2`, `tar`, `sha256sum`.
|
||
|
||
```sh
|
||
./scripts/check.sh
|
||
./packaging/build-package.sh # package goes to dist/
|
||
URBM_TEST_RSYNC=/path/to/rsync go test ./internal/rsync -run TestRealRsync -v
|
||
```
|
||
|
||
Replace `REPLACE_DURING_RELEASE` in the copied PLG manifest with the package
|
||
checksum before publishing. Restic 0.19.0 is pinned and checksum-verified by the
|
||
build. Behaviour details per release: [docs/RELEASE-NOTES.md](docs/RELEASE-NOTES.md).
|
||
|
||
## Status
|
||
|
||
The control plane and adapters are implemented (MVP). Hardware and end-to-end
|
||
compatibility must be validated on supported Unraid 7 releases before a stable release.
|
||
|
||
## License
|
||
|
||
GPL-3.0-or-later, see [LICENSE](LICENSE).
|