Skip to content

feat: Add BLOBXFER_REMOTE_DOWNLOAD flag#475

Open
eoehen wants to merge 2 commits into
nfrastack:mainfrom
eoehen:feature/add-blobxfre-download-flag
Open

feat: Add BLOBXFER_REMOTE_DOWNLOAD flag#475
eoehen wants to merge 2 commits into
nfrastack:mainfrom
eoehen:feature/add-blobxfre-download-flag

Conversation

@eoehen

@eoehen eoehen commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

This PR is based on #474

This PR introduces a new Blobxfer runtime flag to make remote pre-sync optional while keeping current behavior as the default.

Summary

Added BLOBXFER_REMOTE_DOWNLOAD with default TRUE.
When TRUE, the backup flow performs a remote download before upload (current sync behavior).
When FALSE, the remote pre-download step is skipped.
Why
Some deployments want upload-only behavior and do not need a remote-to-local sync before each backup run.
This flag provides explicit control without changing existing defaults.

Behavior and safety

Backward compatibility is preserved: default remains TRUE.
If remote download is disabled, remote cleanup sync is intentionally skipped to avoid delete operations without a synchronized local view.
This PR is based on the Blobxfer path-recursion fix PR and reuses that updated flow.

Configuration

Global: DEFAULT_BLOBXFER_REMOTE_DOWNLOAD=TRUE|FALSE
Per job: DBxx_BLOBXFER_REMOTE_DOWNLOAD=TRUE|FALSE (for example DB01_BLOBXFER_REMOTE_DOWNLOAD)

Docs and examples

Documentation updated to describe the new flag, default, and expected behavior.
Blobxfer compose example updated to include the new variable.

Testing notes

Verified default path (TRUE) keeps existing sync-first behavior.
Verified FALSE skips pre-download and still uploads current backup artifacts as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant