Freenas automated backup of config db.

Status
Not open for further replies.
Joined
Mar 28, 2016
Messages
2
For awhile I was using a wget script on another debian machine to pull my config db encrypt it and upload it to my cdn but I feel something was changed in how freenas authenticates users as I cant get the script to work anymore. Heres my code maybe someone can help.

Code:
/opt/bin/wget --keep-session-cookies --save-cookies /opt/backup/cookies.txt --no-check-certificate --post-data='id_username=root&id_password=$Pass&next=/' -O /dev/null 'https://10.0.1.5/account/login/'
/opt/bin/wget --keep-session-cookies --load-cookies /opt/backup/cookies.txt --no-check-certificate 'http://10.0.1.5/system/config/save/' -O -|openssl des3 -salt -k $Salt|dd of=/mnt/cdnbackup/FREENAS/freenas_$Date.db
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Or you can just scp it :)

scp root@freenas:/data/freenas-v1.db /path/to/local.db
 
Status
Not open for further replies.
Top