diff --git a/README.md b/README.md index b80f3cb..306b3b4 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,14 @@ it means that the service is still running or another service is using that bus My scripts generate a logfile in working directory which you can check, every 10 min there will be a status message, with actual values and so on. +# Backup + +You can insert a SD card with FAT32 filesystem, or a blank one and format it with the GX device itself. + +Simply add to cron following command, to copy data folder with some exceptions for node-red node modules every day at 2 am +`crontab -e` +`0 2 * * * /usr/bin/rsync rsync -rlptD --progress --exclude /data/home/nodered/.cache/ --exclude /data/home/nodered/.npm --exclude /data/home/nodered/.node-red/node_modules /data /run/media/mmcblk0p1/data-backup` + #### Restart the script If you want to restart the script, for example after changing it, kill running script