Skip to main content

A simple tool to fetch backups from the UniFi Network Application

Project description

Usage

unifi-backup is a simple tool to fetch configuration backups from the UniFi Network Application.

Arguments

-h, --help

show the help message and exit.

-c FILE, --config FILE

the configuration file (default: ~/.config/unifi-backup/config.yml)

-o FILE, --output FILE

the output file. The file name can contain strftime directives. If the argument is specified, directory, name and keep fields of the configuration are ignored.

Configuration file

The unifi-backup needs a configuration file (default ~/.config/unifi-backup/config.yml). As the file contains secrets, take care to set reasonable permissions. The file is in the YAML format.

Configuration file

controller:
   host: unifi
   port: 8443
   user: admin
   password: ...
   site: default
   ssl_verify: true|false|/path/to/custom_cert.pem
output:
   directory: .
   name: "unifi-%Y%m%d-%H%M.unf"
   keep: 12

All fields except password are optional.

host is a host name or an IP address. The host has to be the same as the network application is configured for; using unifi here and unifi.domain.lan won’t work.

name specifies the name of the output file. strftime directives are allowed.

keep removes all but the most recent *.unf files from the directory, that in this case has to be specified and has to be an absolute path.

directory has to already exist. As the backup is not encrypted and contains secrets the permissions should be set accordingly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unifi_backup-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unifi_backup-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file unifi_backup-0.1.0.tar.gz.

File metadata

  • Download URL: unifi_backup-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for unifi_backup-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6c7e93e1654806fb49e440ca9add0a1fd2cc3f3b5901c09c876c5cde2cbf1a82
MD5 3a44ef9f0f7f8c3f401eb4ea54c945c4
BLAKE2b-256 4dbafcbab7de9b3d339a1c44be53ac12213972f0edf24b2a15452e132bdb0347

See more details on using hashes here.

File details

Details for the file unifi_backup-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: unifi_backup-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for unifi_backup-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e5cd9a6dcd0c81d03e4532eedf229acd79b62e7fa17a0e980140863a2dc6cc3
MD5 79981ff0b73434978fde098f07468c60
BLAKE2b-256 bd517c047b361e8a0b39b1162cbbcf4a65fd0f2f2a813a23969b9b53792008df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page