Menu

Show posts

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.

Show posts Menu

Messages - kevinfason

#1
Ditto. I just did this on a 22.7.11 after moving hardware and restoring backup.
#2
22.1 Legacy Series / Convert UFS to ZFS
March 08, 2022, 12:19:02 AM
Well not really, thats the gist of what I want to accomplish though. I understand a reinstall is required to use ZFS. I did find this as a compromise and will likely go this method. ZFS is one of two features I miss from PFSense.
https://forum.opnsense.org/index.php?topic=24174.0

Before doing that though I wanted to inquire if there is a resource to restore additional data not included in a backup such as vnstat database, logs, etc. Or maybe a list of what is not included in the backup? I can grab the vnstat database and zenarmor backup. I could without various logs but would be nice to transfer all the living data the system has accumulated.  In my case I am NOT using the community repository yet, just the built-in one with a few plugins enabled.


  • os-acme-client
    os-api-backup   
    os-dmidecode
    os-dyndns   
    os-iperf
    os-nut
    os-postfix
    os-sensei
    os-sensei-agent
    os-sensei-updater
    os-smart
    os-sunnyvalley
    os-theme-cicada
    os-vnstat

ZenArmor is installed but not configured past the initial state. I read you trigger a cert update for letsencrypt. So I have zenarmour, vnstat, and letsencrypt figured out at this point. The other feature I miss being online backups but I am doing that via other methods so happy on that front.
#3
I made some minor tweaks to share. Shouldn't really use PATH as a variable as it can override the system path. escaped some stuff etc.

#!/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