Update backup.sh
possible fix to the possible fix
This commit is contained in:
parent
9f3a7b7115
commit
fc9458a150
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue