Merge pull request #236 from eoehen/feature/blobxfer-download-befor-move-new-backup-file

feat(235) Synchronize local storage from S3 before upload
This commit is contained in:
Dave Conroy
2023-11-03 15:23:22 -07:00
committed by GitHub

View File

@@ -765,6 +765,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}"