Documentation ¶
Overview ¶
Package autobackup generates an autobackup_meta.json from backups.
This is necessary because the UniFi Controller does not list the autobackup directory, it only reads the contents of the inventory file. A missing inventory results in UniFi stating no backups are available.
Non-auto backups are not handled. These will have been downloaded to the client machine, and backup files in the backup/ directory are not found by the controller. We could be missing an equivalent meta JSON file that the controller is looking for.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaFile ¶
type MetaFile []File
MetaFile represents the contents of the autobackup_meta.json file. Backups are ordered by time ascending.
func ParseBackups ¶
ParseBackups turns a set of files into a representation of the meta file that can be serialised to autobackup_meta.json file. The set must only contain valid .unf backup files.