
Specify the target location where to store the configuration. When not specified the default location in the %ProgramFiles% / %ProgramFiles(x86)% will be used. Backup UDM-Pro PowerShell scriptīelow you find the PowerShell to copy the latest created backup file. Define how many backups ( Number of Files) you wish to retain and the amount and what data you wish to save within these backups.įor more information check this link. Choose the frequency of backups and time to run the backup by editing Occurrence and Occurrence Timezone. This will reveal some configuration options. To start using this feature you must first enable it by turning the Enable Auto Backup / Create Backups Automatically toggle to the ON position. Navigate to Settings > Controller Settings > Backup. This will enable SSH to the UDM-Pro itself, not to the other Unifi devices connected to it.įor more information check this link.
UNIFI CONTROLLER BACKUP PASSWORD
Once you succeed, you will be redirected to the main page, which will list all Applications installed on your device.Ĭlick on Settings > Advanced and enable the SSH toggle, set a password and, optionally, rename the device if you want to access it later using the hostname instead of IP. As usual, you will have to use your Unifi account credentials to login on the UDM-Pro.

\UDMBackup.ps1 -Host “192.168.1.1” -Username “root” -Password -Location “local” -Target “C:\Backup” -verbose Allow SSH access onto UDM-pro
UNIFI CONTROLLER BACKUP FULL
All parameters must be added in the arguments field.Įxample full execution of the script with PowerShell.exe In the actions tab select action Start a Program and add the powershell.exe in the Program field. To execute the script on daily base create a Scheduled Task.

UNIFI CONTROLLER BACKUP HOW TO
Check the blog how to enable SSH and AutoBackup on the UDM(-Pro)/DreamMachine and how to copy the latest created backup file to a save location. I needed a PowerShell script to copy the latest created backup to a local drive or network share. But after re-installing the firmware all backups stored local were overwritten and not available. The only option was completely re-installing the DreamMachine and restore the backup.

When I tried to restart the DreamMachine it hanged during the boot process. When I checked the Unifi DreamMachine it turns out it was completely crashed. A couple of weeks ago I noticed the internet was down when I woke up.
