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

    Schedule backup

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 1.7k 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.
    • Q
      Quandion
      last edited by

      Hi,

      For a long time I've been looking for a way to daily make a backup.
      But couldn't find anything that matched what i needed, so I've made my own and now I just want to share it if anyone is interested.
      The script is pull and Windows only and uses winscp to login via ssh, and then mails it to a predefined address.

      Here is a simple walkthrough:
      1. Download and extract this http://tinyurl.com/yb9s63r file

      2. Open "!!MODIFY_AND_CLICK_ME!!.bat"
          - set pass=Replace_with_password
          - set host=Replace_with_ip/hostname
          - set pfname=Replace_with_name_of_pfsense
          - set mailsrv=Replace_with_mailserver
          - set mailrcv=Replace_mailadr
          - set mailsender=Replace_with_sender_address

      Modefy these lines to match your setup eg.
          - set pass=pfsense
          - set host=192.168.1.1
          - set pfname=pfSense.domain.tld
          - set mailsrv=smtp.isp.tld
          - set mailrcv=user@domain.tld
          - set mailsender=pfSense@domain.tld

      3. Run "!!MODIFY_AND_CLICK_ME!!.bat"
          - Choose yes to trust the ssh key

      4. Scheldule a task executing "!!MODIFY_AND_CLICK_ME!!.bat"

      Hope this helps someone outthere
      And if you like this feel free to drop a comment :)

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