From c491a32162fc4d7bce549eadab55fc27fcdcb8ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ege=20G=C3=BCne=C5=9F?= Date: Fri, 6 Dec 2024 18:25:25 +0300 Subject: [PATCH] K8SPXC-1398: Fix checking empty backups --- percona-xtradb-cluster-8.0-backup/run_backup.sh | 1 + percona-xtradb-cluster-8.4-backup/run_backup.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/percona-xtradb-cluster-8.0-backup/run_backup.sh b/percona-xtradb-cluster-8.0-backup/run_backup.sh index 0a0c9c1d..9c0d9627 100755 --- a/percona-xtradb-cluster-8.0-backup/run_backup.sh +++ b/percona-xtradb-cluster-8.0-backup/run_backup.sh @@ -88,6 +88,7 @@ backup_volume() { fi trap '' 15 + stat xtrabackup.stream if (($(stat -c%s xtrabackup.stream) < 5000000)); then log 'ERROR' 'Backup is empty' log 'ERROR' 'Backup was finished unsuccessfully' diff --git a/percona-xtradb-cluster-8.4-backup/run_backup.sh b/percona-xtradb-cluster-8.4-backup/run_backup.sh index 0a0c9c1d..9c0d9627 100755 --- a/percona-xtradb-cluster-8.4-backup/run_backup.sh +++ b/percona-xtradb-cluster-8.4-backup/run_backup.sh @@ -88,6 +88,7 @@ backup_volume() { fi trap '' 15 + stat xtrabackup.stream if (($(stat -c%s xtrabackup.stream) < 5000000)); then log 'ERROR' 'Backup is empty' log 'ERROR' 'Backup was finished unsuccessfully'