From 6b43018c22056e2ef14197c1c80f4f57ddd02472 Mon Sep 17 00:00:00 2001 From: mathiasrabe <703790+mathiasrabe@users.noreply.github.com> Date: Tue, 17 May 2022 02:23:38 +0200 Subject: [PATCH] Added '--delete' to syncToDisk in armbian-ramlog (#3779) Added rsync-option '--delete' to syncToDisk to prevent overfilled ramdisk. --- packages/bsp/common/usr/lib/armbian/armbian-ramlog | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bsp/common/usr/lib/armbian/armbian-ramlog b/packages/bsp/common/usr/lib/armbian/armbian-ramlog index 87ce07447a..cfcd5f6ee3 100755 --- a/packages/bsp/common/usr/lib/armbian/armbian-ramlog +++ b/packages/bsp/common/usr/lib/armbian/armbian-ramlog @@ -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