From f67170c1ec89b048e2c2909a7349c8234411bf30 Mon Sep 17 00:00:00 2001 From: Elias Oehen Date: Sat, 8 Jul 2023 12:49:52 +0200 Subject: [PATCH] feat(235) Synchronize local storage from S3 before upload close #235 --- install/assets/functions/10-db-backup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/assets/functions/10-db-backup b/install/assets/functions/10-db-backup index 47892e8..38f8af4 100644 --- a/install/assets/functions/10-db-backup +++ b/install/assets/functions/10-db-backup @@ -748,6 +748,10 @@ move_dbbackup() { rm -rf "${TEMP_LOCATION}"/"${target}" ;; "blobxfer" ) + + print_info "Synchronize local storage from S3 Bucket with blobxfer" + blobxfer download --mode file --remote-path ${BLOBXFER_REMOTE_PATH} --local-path ${DB_DUMP_TARGET} --delete + print_info "Moving backup to external storage with blobxfer" mkdir -p "${DB_DUMP_TARGET}"