We will add the following to 23.7.8: https://github.com/opnsense/core/commit/39b531783The direct download URL is https://xxx.xxx.xxx.xxx/api/core/backup/download/this and I've also changed the EoL message of os-api-backup accordingly.Cheers,Franco
#!/usr/bin/bash# Change API key and secret, number of days to keep backups, the path to your backups and the hostname for your firewallkey=YOURKEYsecret=YOURSECRETdaystokeep=30destination="/PATH/TO/SAVE/BACKUPS/TO"fwhost="IP_ADDRESS_OF_FIREWALL-192.168.1.1"date=$(date +%Y-%m-%d)result=$(/usr/bin/curl -I -s -k -u "$key":"$secret" https://$fwhost/api/core/backup/download/this | head -1)if [[ $result != *"200"* ]]; then echo "Result of the HTTP request is $result" exit 1 fi /usr/bin/curl -s -k -u "$key":"$secret" https://$fwhost/api/core/backup/download/this > $date.xml error=$? if [ $error -gt 0 ]; then echo "Curl returned error number $error" exit 1 fi /usr/bin/gzip $date.xml mv $date.xml.gz $destination /usr/bin/find $destination/* -mtime +$daystokeep -exec rm {} \;