Skip to content

Extract rsync flags to environment variable#28

Open
conallob wants to merge 1 commit into
mainfrom
claude/rsync-env-variable-jZopK
Open

Extract rsync flags to environment variable#28
conallob wants to merge 1 commit into
mainfrom
claude/rsync-env-variable-jZopK

Conversation

@conallob
Copy link
Copy Markdown
Owner

Summary

Refactored rsync configuration to improve maintainability by extracting the gigabit transfer flags into an environment variable.

Changes

  • Added RSYNC_FLAGS environment variable to shell.d/env with optimized flags for gigabit transfers
  • Updated gigabit-rsync alias in shell.d/alias to reference the new environment variable instead of hardcoding flags
  • Maintains identical functionality while reducing duplication and improving configurability

Implementation Details

The rsync flags are now centralized in the environment configuration, making it easier to:

  • Modify transfer settings in one place
  • Reuse the flags across multiple commands if needed
  • Keep shell.d/alias focused on alias definitions rather than complex flag strings

The flags remain unchanged and continue to follow the optimization recommendations from https://gist.github.com/KartikTalwar/4393116

https://claude.ai/code/session_01YGG2kzmhtuUopk8serBAPm

Replaces the inline flags in the gigabit-rsync alias with a RSYNC_FLAGS
env variable so the flags are available on Linux/bash hosts and usable
outside the alias too.

https://claude.ai/code/session_01YGG2kzmhtuUopk8serBAPm
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.

2 participants