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

cannot use rsync protocol but always ssh #24

Open
mschaefers opened this issue May 14, 2018 · 3 comments
Open

cannot use rsync protocol but always ssh #24

mschaefers opened this issue May 14, 2018 · 3 comments

Comments

@mschaefers
Copy link

Is there a possibility to use the rsync protocol instead of using ssh?

I'd like to connect to rsync://<hostname>/<target> instead of root@<hostname>/<target> because in our use case , security is not a concern, but network speed is much faster using unencrpyted rsync data.

@macropin
Copy link
Contributor

macropin commented May 14, 2018

Currently it is not directly supported, but it should be possible to implement with a one line change here https://github.com/adlibre/adlibre-backup/blob/master/bin/backup.sh#L117

Or alternatively you can define RSYNC_CMD in each hosts c/backup.conf with the appropriately constructed command, but that is more of a kludge.

Also happy to look at a PR that makes this a more permanent feature, but that is obviously more work.

@mschaefers
Copy link
Author

Having a PR in mind, would a new variable RSYNC_PROTO be suitable? Could be set to ssh per default or to rsync to switch between these two?

@macropin
Copy link
Contributor

That sounds reasonable. Please define it as default ssh in backup.conf.

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

No branches or pull requests

2 participants