Remote comparing

Here you can propose new features, make suggestions etc.

Moderators: sheep, Hacker, Stefan2, white

Post Reply
ufast
Junior Member
Junior Member
Posts: 2
Joined: 2019-03-21, 11:06 UTC

Remote comparing

Post by *ufast » 2019-03-21, 11:16 UTC

Hi,

I have one suggestion for this user-case:

- In some cases you have one local machine and one remote machine. You can access to both filesystems from the same computer. However, when doing directory sync operations then the full content of the files in the remote filesystem needs to go over the network. One workaround is to execute MD5/SHA operation in the remote filesystem with a tool running in the remote computer, and after check the differences. However, this is not a good solution for interactive sessions.

So my suggestion is to support TC-2-TC communication for sync operations. What's that? You run one TC instance in the remote computer, and run another TC instance in the local computer. Then you connect booth instance over the network and then can execute sync operations. The different TC instances compute fingerprint operations and can send/receive chunks of local/remote files. With this support then you can support all directory sync operations without sending the full content every time over the network.

You agree with that?

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38017
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Remote comparing

Post by *ghisler(Author) » 2019-03-21, 11:37 UTC

Sounds like a big potential security hole if TC would provide parts of files via network...
Author of Total Commander
http://www.ghisler.com

ufast
Junior Member
Junior Member
Posts: 2
Joined: 2019-03-21, 11:06 UTC

Re: Remote comparing

Post by *ufast » 2019-03-25, 08:05 UTC

ghisler(Author) wrote:
2019-03-21, 11:37 UTC
Sounds like a big potential security hole if TC would provide parts of files via network...
Why?
If you can access to local and remote filesystem... what's the difference?

The problem isn't the security, the problem is the wasted data sended over the network. At time it's impossible to compare 1GB of data over a slow network link for only a small 4KB difference. You can do it with SHA fingerprints, but this can be valid for a small number of files, not for a large number of text files or small binaries.

Please, think another time on this user case!

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38017
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Remote comparing

Post by *ghisler(Author) » 2019-03-25, 08:45 UTC

If you can access to local and remote filesystem... what's the difference?
Well, the two Total Commanders would have to communicate somehow. But how? You cannot communicate via SMB. So TC would have to open a TCP port and listen to commands from other TC copies. This wouldn't be proteced via SMB login, so some other kind of login/password would be needed.
Author of Total Commander
http://www.ghisler.com

Post Reply