From 248e2ca1d51abdf51d1ddbad843f591b6e85c6f2 Mon Sep 17 00:00:00 2001 From: n549 <29598073+n549@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:01:36 +0300 Subject: [PATCH] Fix failure of second backup after restore --- kubemarine/procedures/backup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kubemarine/procedures/backup.py b/kubemarine/procedures/backup.py index 8e37a9ef4..21dbca6a8 100755 --- a/kubemarine/procedures/backup.py +++ b/kubemarine/procedures/backup.py @@ -138,6 +138,7 @@ def export_nodes(cluster: KubernetesCluster) -> None: cluster.log.debug('Backing up the following files: \n' + ' - ' + '\n - '.join(backup_list)) backup_command = 'cd /tmp && ' \ + 'sudo rm -f /tmp/kubemarine-backup.tar.gz && ' \ 'sudo tar -czvf /tmp/kubemarine-backup.tar.gz -P $(sudo readlink -e %s) && ' \ 'sudo ls -la /tmp/kubemarine-backup.tar.gz && ' \ 'sudo du -hs /tmp/kubemarine-backup.tar.gz' % (' '.join(backup_list))