Skip to content

Commit

Permalink
fix(backup.sh): use recursive to move the folder (#76)
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Maillot <[email protected]>
  • Loading branch information
vmaillot authored Mar 1, 2024
1 parent 8668c18 commit 404eb54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if [ "${OCP_BACKUP_S3}" = "true" ]; then
chroot /host /usr/local/bin/cluster-backup.sh "/var/tmp/etcd-backup/${BACKUP_FOLDER}"

# move files to S3 and delete temporary files
mcli mv /host/var/tmp/etcd-backup/* "${OCP_BACKUP_S3_NAME}"/"${OCP_BACKUP_S3_BUCKET}"
mcli mv -r /host/var/tmp/etcd-backup/* "${OCP_BACKUP_S3_NAME}"/"${OCP_BACKUP_S3_BUCKET}"
rm -rv /host/var/tmp/etcd-backup
else
# prepare, run and copy backup
Expand Down

0 comments on commit 404eb54

Please sign in to comment.