Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #4430 > unrolled thread
| Started by | Spyridon Metaxas <SMet@somewhere.world> |
|---|---|
| First post | 2019-06-24 15:02 +0000 |
| Last post | 2019-06-24 09:09 -0600 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.os.linux.networking
Questions about rsync Spyridon Metaxas <SMet@somewhere.world> - 2019-06-24 15:02 +0000
Re: Questions about rsync Dan Purgert <dan@djph.net> - 2019-06-24 15:08 +0000
Re: Questions about rsync Grant Taylor <gtaylor@tnetconsulting.net> - 2019-06-24 09:09 -0600
| From | Spyridon Metaxas <SMet@somewhere.world> |
|---|---|
| Date | 2019-06-24 15:02 +0000 |
| Subject | Questions about rsync |
| Message-ID | <qeqomt$kt9$1@news.albasani.net> |
An rsync client can specify a number of options to shape the file synchronization that it launches. One of those options is compression. Two questions on this: 1. When rsync is launched over SSH, is this option passed down to the SSH transport, or is it totally independent? If the latter, we could have compression at the rsync protocol, and then compression at the SSH transport, right? This is probably not a good idea, but I am just interested to learn how things are done in this respect. 2. Is the server allowed NOT to honor the compression request from the client? Again, taking SSH as a reference - it's just that I am more familiar with it than with rsync - the server is allowed to ignore a compression request from the client. Is an rsync server allowed to do so as well, or is it the case that the synchronization can't succeed if the server, for whatever reason, does not support compression?
[toc] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2019-06-24 15:08 +0000 |
| Message-ID | <slrnqh1pr8.ds3.dan@djph.net> |
| In reply to | #4430 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Spyridon Metaxas wrote: > An rsync client can specify a number of options to shape the file > synchronization that it launches. One of those options is compression. > Two questions on this: > > 1. When rsync is launched over SSH, is this option passed down to > the SSH transport, or is it totally independent? If the latter, we could > have compression at the rsync protocol, and then compression at the SSH > transport, right? This is probably not a good idea, but I am just > interested to learn how things are done in this respect. It's possible to try (IIRC) -- but yes, doubly-compressing just burns cpu cycles for the most part. > > 2. Is the server allowed NOT to honor the compression request > from the client? Again, taking SSH as a reference - it's just that I am > more familiar with it than with rsync - the server is allowed to ignore a > compression request from the client. Is an rsync server allowed to do so > as well, or is it the case that the synchronization can't succeed if the > server, for whatever reason, does not support compression? as far as I am aware, no. Remember that the compression is merely on-the-fly, somewhat equivalent to tar -czvf -- list-of-files | nc server.com portno (server) nc receive | tar -xf -- -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl0Q52cACgkQjhHd8xJ5 ooF2Cgf/a7OXhoSLxBJkAU32zJe4keQ4y078UVwlqTXzsNsEooUj3RrmRRohhLmj Uhiny8pRuriHo1giIPuEUdBEnfl6ITVj8XHKM4HKiAg80xqq4p7qYEsmF56khNQm rMO2DUjiMCiyy/lN9zRNA3CKuw7+VNqUIiaeFd01zJ8P+PTIiVeZXArhMOxtp3eZ 4fmBD+lCsWQhthESviiRDQq0ecMUp2cvFdzmJeADY5zoT9QvQpz/1ZHU5flxrl0q UZMKYFSGC+1Fl4UrrAD+yMprF1YHeHMgMnNaVG6d02E9yiLAvEL4Y61QfwGPF+gI 7Z//WPZD1Y8nYqtE7rNpXuaslFdPjg== =xqyS -----END PGP SIGNATURE----- -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-06-24 09:09 -0600 |
| Message-ID | <qeqp50$pju$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #4430 |
On 6/24/19 9:02 AM, Spyridon Metaxas wrote: > 1. When rsync is launched over SSH, is this option passed down to > the SSH transport, or is it totally independent? If the latter, we > could have compression at the rsync protocol, and then compression > at the SSH transport, right? This is probably not a good idea, but > I am just interested to learn how things are done in this respect. I don't think that the compression option is passed from rsync down to the underlying SSH transport. Remember that SSH is one of multiple transports that rsync can use. There's also a reasonably good chance that even if compression is enabled on the underlying SSH transport, anything that's compressed at a higher layer will receive little, if any, compression from the underlying SSH transport. -- Grant. . . . unix || die
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.linux.networking
csiph-web