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