1
General Discussion / Re: [FIXED] os-nut plugin permissions issue
« on: January 26, 2023, 12:31:33 am »
Ditto. I just did this on a 22.7.11 after moving hardware and restoring backup.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#!/bin/bash
KEY="api_key"
SECRET="api_secret"
HOST="opnsense_hostname"
PATHCONFIG="/path/to/backups"
DATE=`date +%Y%m%d`
curl -s -u ${KEY}:${SECRET} https://${HOST}/api/backup/backup/download -o $PATHCONFIG/opnsense-config-${DATE}.xml
find ${PATHCONFIG} -type f -name opnsense-config\*.xml -mtime +30 -delete