Added '--delete' to syncToDisk in armbian-ramlog (#3779)
Added rsync-option '--delete' to syncToDisk to prevent overfilled ramdisk.
This commit is contained in:
parent
7859068855
commit
6b43018c22
@ -50,6 +50,7 @@ syncToDisk () {
|
||||
if [ "$USE_RSYNC" = true ]; then
|
||||
${NoCache} rsync -aXWv \
|
||||
--exclude "lost+found" --exclude armbian-ramlog.log \
|
||||
--delete \
|
||||
--links \
|
||||
${XTRA_RSYNC_TO[@]+"${XTRA_RSYNC_TO[@]}"} \
|
||||
$RAM_LOG $HDD_LOG 2>&1 | $LOG_OUTPUT
|
||||
|
||||
Loading…
Reference in New Issue
Block a user