1
0
mirror of https://github.com/Spearfoot/FreeNAS-scripts synced 2025-12-06 01:23:19 +00:00

README.md

This commit is contained in:
Keith Nash
2017-03-15 22:54:01 -05:00
committed by GitHub
parent 500a8647be
commit ab25f3cc41

View File

@@ -7,14 +7,22 @@ I have modified the syntax, using the excellent Bash lint system at https://www.
# smart_report.sh
Generates and emails you a status report with detailed SMART information about your system's drives.
By default, my version of this script uses a function I wrote which uses smartctl's scan list to obtain the SMART-enabled drives on the system, but you have the option of using either a hard-coded list or a sysctl-based method instead, if you so choose. This version allows for serial numbers up to 18 characters in length, where the original only supported 15. It also selects the "Device Model" as the drive 'brand' if the "Model Family" SMART attribute is unavailable.
You will need to edit the script and enter your email address before using it.
# zpool_report.sh
Generates and emails you a status report about your system's pools.
You will need to edit the script and enter your email address before using it.
# save_config.sh
Edit this script and specify the target dataset where you want to copy the backup FreeNAS configuration file.
Copies the FreeNAS system configuration file to a dataset you specify. The backup filenames are formed from the hostname, complete FreeNAS version, and date, in this format: _hostname-freenas_version-date.db_. Here is an example from a recent backup on my server named _boomer_:
__boomer-FreeNAS-9.10.2-U2-e1497f2-20170315224905.db__
Edit this script and specify the target dataset where you want the backup files copied.