From c56577c99f08d8c5a3f38b9ff80bb3d2a4854871 Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 18 Jan 2013 05:48:52 +0100 Subject: [PATCH] btrfs cleaner updated --- cleaner.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cleaner.sh b/cleaner.sh index 2ee0ace..ccf5e90 100755 --- a/cleaner.sh +++ b/cleaner.sh @@ -1,7 +1,7 @@ #!/bin/bash # # Clean old BTRFS snapshots -# */15 * * * * /root/somescripts/btrfs/cleanup.sh &> /dev/null +# 30 * * * * /root/somescripts/btrfs/cleanup.sh &> /dev/null # # This script will keep current/last day/month snapshots. # This script will update current/last_day/week/month snapshots and will delete snapshots if needed (too many or low on space) @@ -11,7 +11,7 @@ LASTLIST="root home homeroot var" # Autosnaps to keep. Counting/Considering *.snap only. There should be adate_*.snap snapshots only. let MINSNAPCNT=4*5 -let MAXSNAPCNT=4*200 +let MAXSNAPCNT=4*250 MAXSPACEPERCENT=90 echo "***START: `date`***" @@ -89,11 +89,11 @@ while [ $LOOPDEL -eq 2 ]; do fi fi if [ $LOOPDEL -eq 2 ]; then - sleep 60 + sleep 1 fi done umount /mnt/btrfs &> /dev/null -rm -rf /tmp/btrfs_cleaner.lock +rm /tmp/btrfs_cleaner.lock echo "***END: `date`***" -- 2.43.0