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

    Automatic daily backup using cron

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 1.5k 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.
    • R
      reza
      last edited by

      Hi guys,

      Trying to do a config backup every night around 12am

      so I tried crontab -e
      and put this script as the documentation said though changed the date
      wget -q –post-data 'Submit=download'
      http://admin:****@192.168.13.1/diag_backup.php
        -O config-router- 0 24 * * * .xml

      I'm getting the bad minute error. I also used the original file in the documentation and still get the same error

      Any help would be very appreciated.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        "0 24 * * *" is what you give crontab for the date.

        You probably want something like:

        date +%Y%m%d%H%M%S in that place.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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