Added '--delete' to syncToDisk in armbian-ramlog (#3779)

Added rsync-option '--delete' to syncToDisk to prevent overfilled ramdisk.
This commit is contained in:
mathiasrabe 2022-05-17 02:23:38 +02:00 committed by GitHub
parent 7859068855
commit 6b43018c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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