×

UniFi - How to Configure Auto Backup

Overview

This article will discuss how to use and configure the auto backup function of the UniFi Network Controller. The minimum version of the UniFi Network Controller required for this is 5.1.0. Only users with Super Admin role can see the Backup section in the controller.

Table of Contents

  1. Auto Backup Overview
  2. How to Change the Location of Backup File
  3. Related Articles

Auto Backup Overview

Back to Top

settings.auto_backup.PNG

In the UniFi Network Controller, navigate to (Classic) Settings > Auto Backup. Or on (New) Settings > Controller Settings > Backup. To start using this feature you must first enable it by turning the Enable Auto Backup / Create Backups Automatically toggle to the ON position. This will reveal some configuration options. Choose the frequency of backups and time to run the backup by editing Occurrence and Occurrence Timezone. Define how many backups (Number of Files) you wish to retain and the amount and what data you wish to save within these backups.

NOTE: Controllers hosted on Cloud Keys will only be able to enable Auto Backup if there is an SD card inserted in the Cloud Key.

How to Change the Location of the Backup File

Back to Top

 The default storage location of the backup file is as follows:

  • On the Gen2 Cloud Keys autobackups are stored on both the eMMC ( HDD for UCK-G2-Plus ) and SD card if inserted.
    • /data/autobackup/ (SD card)
    • /usr/lib/unifi/data/backup/autobackup/ (eMMC/HDD)
  • On the Gen1 Cloud Key autobackups are saved on the SD card.
    • /data/autobackup/ (SD card)
  • For software installs: {data.dir}/backup/autobackup
    • For Windows 10, autobackups can be found in: C:\Users\[UserName who installed the controller software]\Ubiquiti UniFi\data\backup\autobackup. Upgrade backups can be found within C:\Users\[UserName who installed the controller software]\Ubiquiti UniFi\data\backup.

The location of the backup file cannot be modified in the Controller UI: it must be configured via the system.properties file. To change the default location add the following line to the system.properties file (substituting /some/path with the chosen storage place):

autobackup.dir=/some/path

For a more detailed explanation about the system.properties file please see our Related Articles below.

Related Articles

Back to Top

UniFi - system.properties File Explanation

Intro to Networking - How to Establish a Connection Using SSH

Was this article helpful?
14 out of 28 found this helpful
Can't find what you're looking for?
Visit our worldwide community of Ubiquiti experts for more answers
Visit the Ubiquiti Community