Update backup.sh

As a possible fix for the error that we had from 12th june due to server reinstall (NO ZSTD)
This commit is contained in:
Randall Lowe 2017-06-30 14:37:23 -07:00 committed by GitHub
parent d0c534cd48
commit 9f3a7b7115

View file

@ -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