Comment on Python Port of 600 Line Bash Script: rsync-time-machine.py for Rsync BackupsComments−locusofself3yHow difficult do you think it would be to implement such a system in pure python?This is neat, but it still leverages a lot of shell commands, ie ssh, find, mkdir etc..−basnijholtOP3yI attempted doing this initially. Everything is very doable except SSH. One would have to rely on third-party libraries to do this well.−sgarland3yAre you open to a single dependency [0]? Entirely native tooling is an admirable thing that I greatly appreciate, but parsing subprocess output is fraught with issues (I know, I've done this as well).[0]: https://github.com/ParallelSSH/ssh-python−memco3yI’ve used paramiko for this also: https://www.paramiko.org/.
Comments
How difficult do you think it would be to implement such a system in pure python?
This is neat, but it still leverages a lot of shell commands, ie ssh, find, mkdir etc..
I attempted doing this initially. Everything is very doable except SSH. One would have to rely on third-party libraries to do this well.
Are you open to a single dependency [0]? Entirely native tooling is an admirable thing that I greatly appreciate, but parsing subprocess output is fraught with issues (I know, I've done this as well).
[0]: https://github.com/ParallelSSH/ssh-python
I’ve used paramiko for this also: https://www.paramiko.org/.