Skip to content

Commit 50b61ad

Browse files
authored
Merge pull request #236 from eoehen/feature/blobxfer-download-befor-move-new-backup-file
feat(235) Synchronize local storage from S3 before upload
2 parents 07e74ca + f67170c commit 50b61ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install/assets/functions/10-db-backup

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,10 @@ move_dbbackup() {
765765
rm -rf "${TEMP_LOCATION}"/"${target}"
766766
;;
767767
"blobxfer" )
768+
769+
print_info "Synchronize local storage from S3 Bucket with blobxfer"
770+
blobxfer download --mode file --remote-path ${BLOBXFER_REMOTE_PATH} --local-path ${DB_DUMP_TARGET} --delete
771+
768772
print_info "Moving backup to external storage with blobxfer"
769773

770774
mkdir -p "${DB_DUMP_TARGET}"

0 commit comments

Comments
 (0)