Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Scripting Backup / Restore action

    Scheduled Pinned Locked Moved webGUI
    2 Posts 2 Posters 499 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DTALR
      last edited by DTALR

      Hey there,

      I'd like to script backing up my aliases and restoring them to different pfsense machines. The reason is to keep the aliases identical among all our firewalls. Is there a way to do this or am I stuck doing it manually?

      2019-04-25_16-28-19.png

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        you can do a simple scp command to backup the full xml somewhere - so that is very simple to script.. But just pulling out the aliases and then the hard part would be the partial scripted restore.. Of just that section..

        Its been discussed in the past, have never seen anyone do it. And its not built in sort of feature.

        How many changes to aliases do you make? That this is something you would want to script?

        You do understand you can point alias to some other location, and just use a common location you update right... The url table function, and have it update every so many X days

        urltable.png

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.