From d58adfd99b0a2d20a4085f466d75db769962ca24 Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Sat, 24 Jun 2023 12:59:46 +0200 Subject: [PATCH] Update readme for rsync backup to microSD --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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