Releases: TotallyInformation/alternate-node-red-installer
Minor updates
Added
-
An example
settings.js
file (data/example-settings/js
)This contains a number of enhancements over the default including extended information that can be collapsed for easier reading.
It also is configured to pick up the environment variables specified in this packages templates.
-
backup.sh
,backupw.sh
, andbackupm.sh
BASH scripts in the newscripts
folder to efficiently back up your working Node-RED installation if installed using this alternate installer.The scripts should be run from CRON daily, weekly and monthly respectively.
Please amend the indicated variables in the scripts so that they will work for your own installation.
# Node-RED daily backup (3AM every day) 0 3 * * * "/home/home/nrmain"/backup.sh > /dev/null # Node-RED weekly backup (03:30 every Sunday) 30 3 * * 0 "/home/home/nrmain"/backupw.sh > /dev/null # Node-RED monthly backup (04:00 on the first of every month) 0 4 1 * * "/home/home/nrmain"/backupm.sh > /dev/null
They give you 7 days of daily backups, 5 weekly backups, and 12 monthly backups. They should be easy enough to adapt to whatever schedule you want.
Output from the scripts are written to syslog, review with
sudo cat /var/log/syslog | grep nrmain-backup
orsudo journalctl -t nrmain-backup
.Note that the backup scripts have been updated for Node-RED v1.3 such that
data/externalModules/node_modules
is excluded.