Skip to content

Commit

Permalink
Fix failure of second backup after restore
Browse files Browse the repository at this point in the history
  • Loading branch information
n549 committed Aug 27, 2024
1 parent 6fd290c commit 248e2ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kubemarine/procedures/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 248e2ca

Please sign in to comment.