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

add support for arbitrary SSH commands #248

Merged
merged 3 commits into from
Oct 5, 2015

Conversation

anarcat
Copy link
Contributor

@anarcat anarcat commented Oct 5, 2015

while SSH options can be specified through ~/.ssh/config, some users
may want to use a completely different SSH command for their backups,
without overriding their $PATH variable. it may also be easier to do
ad-hoc configuration and tests that way.

plus, the POLA tells us that users expects something like this to be
supported by commands that talk to ssh. it is supported by rsync, git
and so on.

see jborg/attic#99

a significant amount of code reshuffling was necessary for unit tests to be implemented here, so please bear with me...

the reasoning behind this is that we may need to test a
RemoteRepository setup outside of the main archiver routines, which
the current default location makes impossible

by moving the umask and remote_path remotes into the RemoteRepository
the (reasonable) defaults are available regardless of the (currently
obscure) initialisation routine, and make unit tests easier to develop
and support
while SSH options can be specified through `~/.ssh/config`, some users
may want to use a completely different SSH command for their backups,
without overriding their $PATH variable. it may also be easier to do
ad-hoc configuration and tests that way.

plus, the POLA tells us that users expects something like this to be
supported by commands that talk to ssh. it is supported by rsync, git
and so on.
@anarcat anarcat mentioned this pull request Oct 5, 2015
@codecov-io
Copy link

Current coverage is 83.05%

Merging #248 into master will not affect coverage as of d885b8f

@@            master    #248   diff @@
======================================
  Files           31      31       
  Stmts         6700    6717    +17
  Branches         0       0       
  Methods          0       0       
======================================
+ Hit           5565    5579    +14
  Partial          0       0       
- Missed        1135    1138     +3

Review entire Coverage Diff as of d885b8f


Uncovered Suggestions

  1. +0.63% via borg/fuse.py#124...165
  2. +0.51% via borg/xattr.py#199...232
  3. +0.43% via borg/xattr.py#166...194
  4. See 7 more...

Powered by Codecov. Updated on successful CI builds.

ThomasWaldmann added a commit that referenced this pull request Oct 5, 2015
add support for arbitrary SSH commands
@ThomasWaldmann ThomasWaldmann merged commit 974dd58 into borgbackup:master Oct 5, 2015
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.

3 participants