31
Tutorials and FAQs / Re: Unable to install OPNsense on Virtual box
« on: July 23, 2020, 03:49:19 pm »
How is your virtual drive configured in VirtualBox?
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"
PATH="/path/to/backups"
curl -s -k -u $KEY:$SECRET https://$HOST/api/backup/backup/download \
-o $PATH/opnsense-config-$(date +%Y%m%d).xml
find $PATH/ -type f -name '*.xml' -mtime +30 -exec rm {} \;
No doubt it's obvious, but edit the variables at the top to match your environment. This will save the backup files with a filename of "opnsense-config-yyyymmdd.xml", and delete everything over 30 days old.What it will also do is turn a supported stock FreeBSD release into an OPNsense installation, given that UFS was used to install the root file system.Am I setting myself up for trouble here? Is this an obsolete caveat in the manual? Or is something else going on?