Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow rsync command to be manually specified #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

juniperab
Copy link

I have encountered the need to run linux-timemachine explicitly with a custom rsync executable instead of /usr/bin/rsync. (Specifically, my desire is to invoke the office rsync-no-vanished wrapper script from the rsync distribution to prevent my backups failing when files are deleted while the backup is in progress.)

As the PATH variable used by the timemachine script is now explicitly baked in (as of #66 (comment)), I can't accomplish this this by placing my custom rsync script elsewhere in my PATH. No quibble with the valid security concerns that led to baking in the PATH value, but it means this problem requires a different solution.

This PR adds the ability to specify an alternate rsync command by setting the RSYNC_COMMAND environment variable when invoking timemachine. This value may be a simple command name that will be resolved as normal from the configured PATH, or it may be an absolute or relative path to a specific executable anywhere in the filesystem.

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