From 9f3a7b7115423c524607a0f55a45a1a8fcbb62cc Mon Sep 17 00:00:00 2001 From: Randall Lowe Date: Fri, 30 Jun 2017 14:37:23 -0700 Subject: [PATCH 1/2] Update backup.sh As a possible fix for the error that we had from 12th june due to server reinstall (NO ZSTD) --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 5cfbb77..3a4408e 100644 --- a/backup.sh +++ b/backup.sh @@ -149,7 +149,7 @@ ARCHIVE_SIZE=$(du -h $ARCHIVE_PATH | awk '{print $1}') BACKUP_DIRECTORY_SIZE=$(du -h --max-depth=0 $BACKUP_DIRECTORY | awk '{print $1}') TIME_DELTA=$((END_TIME - START_TIME)) -if [[ "$ARCHIVE_SIZE" != "" ]]; then +if [[ "$ARCHIVE_SIZE" != "" || "$ARCHIVE_SIZE_KB" -lt "1024"]]; then message-players-success "Backup complete!" "$TIME_DELTA s, $ARCHIVE_SIZE/$BACKUP_DIRECTORY_SIZE, $COMPRESSION_PERCENT%" delete-old-backups else From fc9458a1507ccbd5b6170e1a83573935cdfafc6b Mon Sep 17 00:00:00 2001 From: Randall Lowe Date: Fri, 30 Jun 2017 14:40:32 -0700 Subject: [PATCH 2/2] Update backup.sh possible fix to the possible fix --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 3a4408e..c482fcf 100644 --- a/backup.sh +++ b/backup.sh @@ -149,7 +149,7 @@ ARCHIVE_SIZE=$(du -h $ARCHIVE_PATH | awk '{print $1}') BACKUP_DIRECTORY_SIZE=$(du -h --max-depth=0 $BACKUP_DIRECTORY | awk '{print $1}') TIME_DELTA=$((END_TIME - START_TIME)) -if [[ "$ARCHIVE_SIZE" != "" || "$ARCHIVE_SIZE_KB" -lt "1024"]]; then +if [[ "$ARCHIVE_SIZE" != "" && "$ARCHIVE_SIZE_KB" -gt "1024"]]; then message-players-success "Backup complete!" "$TIME_DELTA s, $ARCHIVE_SIZE/$BACKUP_DIRECTORY_SIZE, $COMPRESSION_PERCENT%" delete-old-backups else