Update readme for rsync backup to microSD
This commit is contained in:
parent
94d0308da5
commit
d58adfd99b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue