This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |