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

[Question] Rsync won't record the rsynced file names in ttyrec #506

Open
SherifNagy opened this issue Oct 23, 2024 · 1 comment
Open

[Question] Rsync won't record the rsynced file names in ttyrec #506

SherifNagy opened this issue Oct 23, 2024 · 1 comment
Labels

Comments

@SherifNagy
Copy link

Just updated to latest release 3.17.00 to test the rsync functionality and it works great, however, I noticed that in the ttyrec session, it won't list the files names that being rsynced, is this expected?

just shows something like

>>> Hello sherif, running rsync through the bastion on [email protected]:22...
>>> Done, 44043 bytes uploaded, 40645437 bytes downloaded
@speed47
Copy link
Collaborator

speed47 commented Dec 4, 2024

Hello, sorry for the response delay!

Yes, what you're seeing is expected, this is because the file list is not generated (or seen) on the bastion, nor on the remote server where you're rsync from/to, but on your local rsync client.

Using the bastion, you have:

(local rsync client) --ssh-> (bastion with rsync plugin) --ssh-> (remote server running rsync server)

The filelist display is generated by the local rsync client, and outputted to your terminal directly. What's flowing through ssh to the bastion and to the remote server is the binary rsync protocol directly.

If having the output list recorded is critical to you, you would need to ensure the rsync client is launched under ttyrec itself, which means something like:

(local computer) --ssh-> (bastion) --ssh-> (machine launching the rsync client) --ssh-> (bastion) --ssh-> (remote server running rsync server)

This way, the first bastion will have a ttyrec with the output of what is displayed on the rsync client machine's terminal.
Note that if your only concern is having this list, the second bastion is not even needed (if the rsync client has direct ssh access to the rsync server, and if this is allowed by your security/network constraints, that is)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants