]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
rotate ten times history
authorBastian Dehn <hhaalo@arcor.de>
Thu, 29 May 2025 04:47:35 +0000 (06:47 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 29 May 2025 04:47:35 +0000 (06:47 +0200)
backup

diff --git a/backup b/backup
index 1677ae81b8dd7284ccc42e33a9b5d3a0662eb8ba..b10667280dc35d46ca5745b35d8d261c93bd0ac1 100755 (executable)
--- a/backup
+++ b/backup
@@ -41,7 +41,7 @@ rotate_history()
                && history_lines=$(cat $history_file | wc -l)
        echo "ℹ️  INFO: $history_file has $history_lines lines"
        [ $history_lines -ge 100 ] \
-               && savelog -c 7 -l $history_file \
+               && savelog -c 10 -l $history_file \
                && echo "ℹ️  INFO: $history_file rotated"
 }