Skip to content

Commit

Permalink
Merge pull request #236 from eoehen/feature/blobxfer-download-befor-m…
Browse files Browse the repository at this point in the history
…ove-new-backup-file

feat(235) Synchronize local storage from S3 before upload
  • Loading branch information
tiredofit committed Nov 3, 2023
2 parents 07e74ca + f67170c commit 50b61ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install/assets/functions/10-db-backup
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 50b61ad

Please sign in to comment.