UniFi-Protect-Backup

Aplicación Docker from ep1cman's Repository

Visión general

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.

Argumentos en tiempo de ejecución

Red
bridge
Concha
sh
Privilegiado
false

Configuración de plantillas

TimeZoneVariable

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

Objetivo
TZ
Por defecto
UTC
UniFi Protect usernameVariable

Username to login to Unifi Protect instance

Objetivo
UFP_USERNAME
UniFi Protect passwordVariable

Password for Unifi Protect user

Objetivo
UFP_PASSWORD
UniFi Protect addressVariable

Address of Unifi Protect instance

Objetivo
UFP_ADDRESS
UniFi Protect portVariable

Port of Unifi Protect instance

Objetivo
UFP_PORT
Por defecto
443
Verify SSL certificateVariable

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

Objetivo
UFP_SSL_VERIFY
Por defecto
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)

Objetivo
RCLONE_RETENTION
Por defecto
7d
rclone destinationVariable

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

Objetivo
RCLONE_DESTINATION
Por defecto
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

Objetivo
IGNORE_CAMERAS
Logging VerbosityVariable

More `v`s = more verbost logging

Objetivo
VERBOSITY
Por defecto
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/)

Objetivo
RCLONE_ARGS
Rclone ConfigPathr

Location of rclone configuration files

Objetivo
/config/rclone
Por defecto
/mnt/user/appdata/unifi-protect-backup/rclone/
Valor
/mnt/user/appdata/unifi-protect-backup/rclone/
Database directoryPathr

Location to save the SQLite events database

Objetivo
/config/database
Por defecto
/mnt/user/appdata/unifi-protect-backup/database/
Valor
/mnt/user/appdata/unifi-protect-backup/database/
Clip directoryPathr

ONLY USED WITH LOCAL RCLONE REMOTE

Objetivo
/data
Por defecto
/mnt/user/appdata/unifi-protect-backup/clips
Valor
/mnt/user/appdata/unifi-protect-backup/clips

Categorías

Detalles

Repositorio
ghcr.io/ep1cman/unifi-protect-backup:latest
Última actualización2026-05-31
Visto por primera vez2022-02-24

Ejecute UniFi-Protect-Backup en Unraid.

UniFi-Protect-Backup se encuentra en Community Apps para Unraid OS. Explore Unraid para crear un servidor doméstico flexible, un NAS o un laboratorio doméstico.