From 2b2ba030a6384d3a2d2af5cef704648c380fc16a Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Fri, 21 Oct 2016 16:53:10 +0200 Subject: [PATCH] comment --- lgsm/functions/command_backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lgsm/functions/command_backup.sh b/lgsm/functions/command_backup.sh index 199226ba9..3082c563e 100644 --- a/lgsm/functions/command_backup.sh +++ b/lgsm/functions/command_backup.sh @@ -139,6 +139,7 @@ fn_backup_clearing(){ backupscount=$(find "${backupdir}/" -type f -name "*.tar.gz"|wc -l) # How many backups exceed maxbackups backupquotadiff=$((backupscount-maxbackups)) +# How many backups exceed maxbackupdays backupsoudatedcount=$(find "${backupdir}"/ -type f -name "*.tar.gz" -mtime +"${maxbackupdays}"|wc -l) # If backup variables are set if [ -n "${maxbackupdays}" ]&&[ -n "${maxbackups}" ]; then