Schedule backup
-
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 file2. 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_addressModefy 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.tld3. Run "!!MODIFY_AND_CLICK_ME!!.bat"
- Choose yes to trust the ssh key4. 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 :)