Skip to content

Instantly share code, notes, and snippets.

View cdbailey's full-sized avatar

Chris Bailey cdbailey

View GitHub Profile
@cdbailey
cdbailey / gist:b796b6379f52b393c63a0d39bb13ab02
Last active April 26, 2021 22:27
UDM PRO Backup to NFS Script
#!/bin/bash
# /volume1/UDMBackup is the path to the NFS share on the Synology
# /nfs/UDMBackup is the mount point on the local Linux server where the script runs
# /opt/scripts/UDM_pass is a text file containing the root account password on the UDM
# I run this script on an Ubuntu VM for ease of maintenance and save the backups on a Synology using NFS
LOGFILE="/opt/scripts/udmpro-backup.log"
BKUPSCRIPT="sshpass -f /opt/scripts/UDM_pass scp -o StrictHostKeyChecking=no -r root@<<UDM PRO IP ADDRESS>>:/mnt/data/unifi-os/unifi/data/backup/autobackup/* /nfs/UDMBackup"
mount <<SYNOLOGY IP ADDRESS>>:/volume1/UDMBackup /nfs/UDMBackup
@cdbailey
cdbailey / dnscrypt-proxy-udmpro.txt
Last active November 26, 2023 19:47
Running dnscrypt-proxy on UDM Pro
1. Download the latest version of dnscrypt-proxy from Github, specifically the linux_arm64 release. At the time of writing, the current release was 2.0.42.
https://github.com/DNSCrypt/dnscrypt-proxy/releases/download/2.0.42/dnscrypt-proxy-linux_arm64-2.0.42.tar.gz
2. Transfer the tarball to the UDM Pro using scp, placing the file into the /opt directory. Explode the tarball and rename the resulting directory. Remove the tarball (optional).
Transfer file from local host to UDM Pro:
scp dnscrypt-proxy-linux_arm64-2.0.42.tar.gz root@<udm pro IP goes here>:/opt
Explode and rename (perform within SSH session on UDM Pro):