pfsense-api settings after pfsense upgrade. #389
-
Hi. I tried to see if I could only restore the pfsense-api settings, but failed. Is this the normal way to do this? Or just recreate settings and tokens? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey! By default the API package will store a persistent backup of the API configuration at Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hey!
By default the API package will store a persistent backup of the API configuration at
/usr/local/share/pfSense-pkg-API/backup.json
(as long as you haven't disabled the 'Persistent configuration' setting in the API configuration). Whenever the package is reinstalled it looks for a backup in this location and will automatically attempt to restore the configuration from that file. I'd recommend keeping a copy of the backup.json file off of your pfSense systems before you update just in case. You can manually restore from the backup file by runningpfsense-api restore
from the command line or manually take a backup by runningpfsense-api backup
.Hope this helps!