UniFi-Protect-Backup

Docker 应用程序 from ep1cman's Repository

概述

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.

运行时参数

网络
bridge
外壳
sh
特权
false

模板配置

TimeZoneVariable

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

目标
TZ
默认值
UTC
UniFi Protect usernameVariable

Username to login to Unifi Protect instance

目标
UFP_USERNAME
UniFi Protect passwordVariable

Password for Unifi Protect user

目标
UFP_PASSWORD
UniFi Protect addressVariable

Address of Unifi Protect instance

目标
UFP_ADDRESS
UniFi Protect portVariable

Port of Unifi Protect instance

目标
UFP_PORT
默认值
443
Verify SSL certificateVariable

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

目标
UFP_SSL_VERIFY
默认值
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)

目标
RCLONE_RETENTION
默认值
7d
rclone destinationVariable

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

目标
RCLONE_DESTINATION
默认值
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

目标
IGNORE_CAMERAS
Logging VerbosityVariable

More `v`s = more verbost logging

目标
VERBOSITY
默认值
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/)

目标
RCLONE_ARGS
Rclone ConfigPathr

Location of rclone configuration files

目标
/config/rclone
默认值
/mnt/user/appdata/unifi-protect-backup/rclone/
价值
/mnt/user/appdata/unifi-protect-backup/rclone/
Database directoryPathr

Location to save the SQLite events database

目标
/config/database
默认值
/mnt/user/appdata/unifi-protect-backup/database/
价值
/mnt/user/appdata/unifi-protect-backup/database/
Clip directoryPathr

ONLY USED WITH LOCAL RCLONE REMOTE

目标
/data
默认值
/mnt/user/appdata/unifi-protect-backup/clips
价值
/mnt/user/appdata/unifi-protect-backup/clips

类别

详细信息

存储库
ghcr.io/ep1cman/unifi-protect-backup:latest
最后更新2026-05-31
初见2022-02-24

在Unraid 上运行 UniFi-Protect-Backup 。

UniFi-Protect-Backup 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。