Skip to content

Commit f67170c

Browse files
committed
feat(235) Synchronize local storage from S3 before upload
close #235
1 parent e3faab5 commit f67170c

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
@@ -748,6 +748,10 @@ move_dbbackup() {
748748
rm -rf "${TEMP_LOCATION}"/"${target}"
749749
;;
750750
"blobxfer" )
751+
752+
print_info "Synchronize local storage from S3 Bucket with blobxfer"
753+
blobxfer download --mode file --remote-path ${BLOBXFER_REMOTE_PATH} --local-path ${DB_DUMP_TARGET} --delete
754+
751755
print_info "Moving backup to external storage with blobxfer"
752756

753757
mkdir -p "${DB_DUMP_TARGET}"

0 commit comments

Comments
 (0)