File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ if [[ "$(sqlite3 /data/freenas-v1.db "pragma integrity_check;")" == "ok" ]]; the
34
34
# Also store it somewhere that will be backed up by another service.
35
35
if [[ " ${BACKUP_FILE_PATH} " != " " ]]; then
36
36
cp " ${TAR_FILE} " " ${BACKUP_FILE_PATH} " /" ${BACKUP_FILE_NAME} " .tar.gz
37
+ if [[ " ${BACKUP_FILE_OWNER} " != " " ]]; then
38
+ chown " ${BACKUP_FILE_OWNER} " " ${BACKUP_FILE_PATH} " /" ${BACKUP_FILE_NAME} " .tar.gz
39
+ fi
37
40
fi
38
41
rm /tmp/" ${BACKUP_FILE_NAME} " .db
39
42
rm /tmp/" ${BACKUP_FILE_NAME} " .db.sha256
Original file line number Diff line number Diff line change 2
2
# If you don't want to store your config backup somewhere on your FreeNAS filesystem you can just leave this variable
3
3
# empty like: readonly BACKUP_FILE_PATH=""
4
4
readonly BACKUP_FILE_PATH="/path/to/freenas/db/backup/dir"
5
+ # Change the owner of the file, leave empty ("") if not desired
6
+ readonly BACKUP_FILE_OWNER="myuser"
5
7
6
8
# SMART report
7
9
readonly DRIVE_TEMPERATURE_WARNING=40 # Degrees Celsius
You can’t perform that action at this time.
0 commit comments