From 512332de57c3d399307e0e9a0248c9ffa33565d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S=C3=89RIE?= Date: Mon, 3 Feb 2014 15:51:08 +0100 Subject: [PATCH] Fix issue #10, delete temp empty dir at the end. --- crons/evobackup-rm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crons/evobackup-rm.sh b/crons/evobackup-rm.sh index 45b7a63..4c66cff 100644 --- a/crons/evobackup-rm.sh +++ b/crons/evobackup-rm.sh @@ -32,7 +32,6 @@ for client in ${CONFDIR}/*; do # We use rsync to delete since it is faster than rm! rsync -a --delete ${emptydir}/ $inc rm -r $inc - rm -r $emptydir stop=$(date --rfc-3339=seconds) echo "Deletion of ${backupname}/${inc#${INCDIR}/${backupname}/} ended at ${stop}." >> $tmplog done @@ -42,5 +41,5 @@ cat $tmplog >> $LOGFILE # Send mail report. < $tmplog mailx -s "[info] EvoBackup - deletion of obsolete incrementals" $MAIL_TO # Cleaning -rm -rf $tmpdir +rm -rf $tmpdir $emptydir rm $tmplog \ No newline at end of file