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

    Scripts to upgrade pfSense and backup configurations

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 305 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.
    • K
      kwangmien
      last edited by

      Hi ,

      I understand that there is a Shell mode in pfSense where we can access to the command line.

      Can anyone advise if it is possible to run scripts in Shell mode to

      a. update the pfSense version, if there is any
      b. backup the configurations in pfSense

      Thanks

      Regards
      Kwang Mien

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @kwangmien
        last edited by

        @kwangmien

        Admin Access

        Console Menu Basics

        The console access isn't optional or hidden.
        When the system is just installed, and network interfaces are not assigned yet, it's the only way to access the system.

        SSH can be activated if needed.

        The console or SSH access permits you to access to file /cf/conf/config.xml, that's the file that contains all the settings.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        K 1 Reply Last reply Reply Quote 0
        • K
          kwangmien @Gertjan
          last edited by

          @Gertjan Thanks for the info. I read in the document, to upgrade from console to run this command

          pfSense-upgrade

          does this upgrade all the packages used in pfSense ?

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @kwangmien
            last edited by

            @kwangmien

            Maybe ? Probably ?
            I use option 13 from this menu :

            2c5dd328-d354-4887-874e-28f1f03c58c9-image.png

            For update or upgrade debugging, the command line can be useful, see the forum, Problems Installing or Upgrading pfSense Software

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 1
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              If you upgrade from the CLI using pfSense-upgrade it will update all packages during the upgrade. But only if a new pfSense version is available.

              K 1 Reply Last reply Reply Quote 0
              • K
                kwangmien @stephenw10
                last edited by

                @stephenw10 Thanks for the info.

                a. after executing pfSense-upgrade and assuming there is a new version, will the firewall be rebooted ?
                b. Is it possible to run pfSense-upgrade as a cron job ?

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Yes an upgrade requires a reboot.

                  Yes, you could run it as a cronjob but I would never recommend doing that. You should always review the release notes etc before upgrading. IMO it should always be a manual task.

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