UniFi-Protect-Backup

Docker-Anwendung from ep1cman's Repository

Übersicht

A Python based tool for backing up UniFi Protect event clips as they occur to cloud storage. By default it will backup clips locally to `/data` inside the container. However you can create an `rclone` config file to backup to dozens of cloud providers. You can do this by running the following commands: ``` $ mkdir -p /mnt/user/appdata/unifi-protect-backup/config $ docker run -it --rm -v /mnt/user/appdata/unifi-protect-backup/config:/root/.config/rclone --entrypoint rclone ghcr.io/ep1cman/unifi-protect-backup config ``` Use the interactive configuration tool to setup your desired backup destination. Once complete you can start the container ensuring that the `RCLONE_DESTINATION` uses the name of your rclone remote e.g `MyDropbox:/path/on/dropbx` NOTE: If you are using the `local` remote type, the path set in `RCLONE_DESTINATION` will be inside the container so please use `/data`. You then need to set the optional "Clip directory" below to where you actually want the data to be stored.

Laufzeit-Argumente

Netzwerk
bridge
Shell
sh
Privilegiert
false

Konfiguration der Vorlage

TimeZoneVariable

TimeZone for the container refer to https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a list of possible timezones

Ziel
TZ
Standard
UTC
UniFi Protect usernameVariable

Username to login to Unifi Protect instance

Ziel
UFP_USERNAME
UniFi Protect passwordVariable

Password for Unifi Protect user

Ziel
UFP_PASSWORD
UniFi Protect addressVariable

Address of Unifi Protect instance

Ziel
UFP_ADDRESS
UniFi Protect portVariable

Port of Unifi Protect instance

Ziel
UFP_PORT
Standard
443
Verify SSL certificateVariable

Set to false if your UniFi protect instances doesn't have a valid SSL certificate

Ziel
UFP_SSL_VERIFY
Standard
false
Clip retention periodVariable

How long should event clips be backed up for. Format as per the `--max-age` argument of `rclone` (https://rclone.org/filtering/#max-age-don-t-transfer-any-file-older-than-this)

Ziel
RCLONE_RETENTION
Standard
7d
rclone destinationVariable

`rclone` destination path in the format {rclone remote}:{path on remote}. E.g.`gdrive:/backups/unifi_protect`

Ziel
RCLONE_DESTINATION
Standard
local:/data
Ignore CamerasVariable

IDs of the cameras you want unifi-protect-backup to ignore. A list of camera IDs will be appear at the start of the log

Ziel
IGNORE_CAMERAS
Logging VerbosityVariable

More `v`s = more verbost logging

Ziel
VERBOSITY
Standard
v
rclone argsVariable

Optional arguments which are directly passed to `rclone rcat`. See the `rclone` documentation for the full set of arguments it supports (https://rclone.org/docs/)

Ziel
RCLONE_ARGS
Rclone ConfigPathr

Location of rclone configuration files

Ziel
/config/rclone
Standard
/mnt/user/appdata/unifi-protect-backup/rclone/
Wert
/mnt/user/appdata/unifi-protect-backup/rclone/
Database directoryPathr

Location to save the SQLite events database

Ziel
/config/database
Standard
/mnt/user/appdata/unifi-protect-backup/database/
Wert
/mnt/user/appdata/unifi-protect-backup/database/
Clip directoryPathr

ONLY USED WITH LOCAL RCLONE REMOTE

Ziel
/data
Standard
/mnt/user/appdata/unifi-protect-backup/clips
Wert
/mnt/user/appdata/unifi-protect-backup/clips

Kategorien

Einzelheiten

Repository
ghcr.io/ep1cman/unifi-protect-backup:latest
Zuletzt aktualisiert2026-05-31
Erstmals gesehen2022-02-24

Führen Sie UniFi-Protect-Backup auf Unraid aus.

UniFi-Protect-Backup ist gelistet in Community Apps für Unraid OS. Erkunden Sie Unraid, um einen flexiblen Heimserver, ein NAS oder ein Heimlabor aufzubauen.