Update readme for rsync backup to microSD

This commit is contained in:
Carsten Schmiemann 2023-06-24 12:59:46 +02:00
parent 94d0308da5
commit d58adfd99b
1 changed files with 8 additions and 0 deletions

View File

@ -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