From 614f14359959aac7f22ad646289c2a22a56591f8 Mon Sep 17 00:00:00 2001 From: Naglfar Date: Sat, 2 Oct 2021 21:34:58 +0200 Subject: [PATCH] Move comment --- roles/shell/files/usr/local/bin/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/shell/files/usr/local/bin/backup b/roles/shell/files/usr/local/bin/backup index 385630a..ee10aa7 100644 --- a/roles/shell/files/usr/local/bin/backup +++ b/roles/shell/files/usr/local/bin/backup @@ -42,10 +42,10 @@ tar -cz \ chown root:sudo $BACKUPS/$DATE*.tgz chmod 640 $BACKUPS/*.tgz -# Remove dumps and the previous backup once there is another. if [ $TYPE = full ] then cp $BACKUPS/full.snapshot $BACKUPS/incremental.snapshot + # Remove dumps and the previous backup once there is another. [ -e $LEVEL0 ] && rm $LEVEL0 $BACKUPS/*incremental.tgz fi