Python script to backup FreeNAS configuration file Created by Eric Bright Copyright (C) 2013
This script will copy the FreeNAS configuration file (/data/freenas-v1.db) to the location of your choice. The script copies the configuration only when a change has been made to the FreeNAS Configuration file. Previous backups will be archived when a new backup is created.
- Copy backup.py to any accessible folder you like. (ex. /tmp/backup.py)
- Change permissions to add execute to backup.py (ex. chmod +x /tmp/backup.py)
- Log into the FreeNAS Web Interface
- Expand System, expand Cron Jobs
- Select Add Cron Job
- User = root Command = /tmp/backup.py Select the minute that you want the script to start Select the hour that you want the script to start Move the slider to run the script ever N day Select the days and the months that you want the script to run
- Uncheck Redirect Stdout to receive email updates for the backup operation
- Uncheck Redirect Stderr to receive email updates for errors processing the script
- Check Enabled to enable this job
*emails sent to root account's email address