Skip to content

Minor updates

Latest
Compare
Choose a tag to compare
@TotallyInformation TotallyInformation released this 01 May 16:39
· 16 commits to master since this release

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, and backupm.sh BASH scripts in the new scripts 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 or sudo 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.