Synchronize FTP by content?
Moderators: Hacker, petermad, Stefan2, white
Synchronize FTP by content?
I have another question to which I can not find answers in the help file or discussions.
Why is comparison by content disabled in the synchronize tool when synchronizing with a FTP site?
I know it generates a lot of traffic - but that can be effectively reduced by using md5 or other hash and compare those instead of files. Besides, you could allow the function and leave it to the user whether they want to put up with the (possibly immense) traffic over the Internet. Or am I missing some reason why this is impossible?
It would be a really welcome function in many cases.
Why is comparison by content disabled in the synchronize tool when synchronizing with a FTP site?
I know it generates a lot of traffic - but that can be effectively reduced by using md5 or other hash and compare those instead of files. Besides, you could allow the function and leave it to the user whether they want to put up with the (possibly immense) traffic over the Internet. Or am I missing some reason why this is impossible?
It would be a really welcome function in many cases.
Last edited by Vacilando on 2004-07-15, 19:12 UTC, edited 1 time in total.
Travel in All Senses
http://www.vacilando.net
http://www.vacilando.net
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Well, you gave the answer yourself - it would cause a LOT of traffic, and be very slow...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Thanks for the answer. But I still think that since you already have that function for local files, you could as well leave it enabled for FTP for those users who need it, and leave the decision on the user whether they want to burden their traffic or not.
Travel in All Senses
http://www.vacilando.net
http://www.vacilando.net
The other, related worry I have here is that when sychronizing via FTP some of the files might not get uploaded completely and, without me noticing immediatelly, part of the website can get completely defunct.
So I am thinking maybe it would be a good idea to do a md5 or other hash signature of the uploaded file and compare it with the local file, so that the match is confirmed. And if there is no match, upload the same file again and/or thow an error message.
Or is there another safeguard preventing partial / corrupted FTP transfer in TC?
So I am thinking maybe it would be a good idea to do a md5 or other hash signature of the uploaded file and compare it with the local file, so that the match is confirmed. And if there is no match, upload the same file again and/or thow an error message.
Or is there another safeguard preventing partial / corrupted FTP transfer in TC?
Travel in All Senses
http://www.vacilando.net
http://www.vacilando.net
Synchronize FTP by content?
I see the last post in this thread dates from over half a year ago. Total Commander still does not support comparing file-contents over FTP
Thought it might be a good idea to bring the issue back under attention:
I strongly agree to Vacilando's point. Who cares if it's slow?? or causes loads of traffic?? Isn't that up to me to decide whether I find that a problem or not?
I'll tell you what causes a lot of traffic: having to download the entire tree over FTP before being able to do a file-compare, update the files, and upload them back again. Not the mention the enormous waste of time!
Because of the lack of a file-compare-by-FTP function in Total Commander I'm seriously considering to give up using FTP to connect to my Linux-servers, and use Samba instead. This would allow me to simply mount a networkdrive, over which Total Commander can do file-compares...
Let's be clear... Ever since I first discovered it (I believe it was version 3.50), I love Total Commander, that's some mighty fine piece of work Mr. Ghisler
I simply can't stand a PC without it. I use it all the time for my work. It has got everyting I need, except ofcourse...
why not implement this feature? I don't think its very complex to develop, but it's a GREAT feature!

I strongly agree to Vacilando's point. Who cares if it's slow?? or causes loads of traffic?? Isn't that up to me to decide whether I find that a problem or not?
I'll tell you what causes a lot of traffic: having to download the entire tree over FTP before being able to do a file-compare, update the files, and upload them back again. Not the mention the enormous waste of time!
Because of the lack of a file-compare-by-FTP function in Total Commander I'm seriously considering to give up using FTP to connect to my Linux-servers, and use Samba instead. This would allow me to simply mount a networkdrive, over which Total Commander can do file-compares...
Let's be clear... Ever since I first discovered it (I believe it was version 3.50), I love Total Commander, that's some mighty fine piece of work Mr. Ghisler

I simply can't stand a PC without it. I use it all the time for my work. It has got everyting I need, except ofcourse...
why not implement this feature? I don't think its very complex to develop, but it's a GREAT feature!
Hammer - I am still waiting for it, too. I agree it should not be complicated to implement.
My early idea of just comparing the hash of the two files would not work because one cannot get the hash of the remote file. TC internally will have to download the file over FTP to do the content-compare.
Let me tell you what I think: if this idea is at all feasible, Christian will implement it one day. Because TC really is one of the finest pieces of software around!
My early idea of just comparing the hash of the two files would not work because one cannot get the hash of the remote file. TC internally will have to download the file over FTP to do the content-compare.
Let me tell you what I think: if this idea is at all feasible, Christian will implement it one day. Because TC really is one of the finest pieces of software around!

Travel in All Senses
http://www.vacilando.net
http://www.vacilando.net
You cannot tell if it is easy or not untill you know source code, trust me. I found it many times (even on my own codeVacilando wrote:Hammer - I am still waiting for it, too. I agree it should not be complicated to implement.

Anyway I vote for this feature. I would like to have it much as well. If I want to compare those files, I have to download file from FTP server anyway, then put it into some temporary dir and afterwards I can compare them