Synchronize FTP by content?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Vacilando
Junior Member
Junior Member
Posts: 10
Joined: 2004-07-15, 10:17 UTC
Contact:

Synchronize FTP by content?

Post by *Vacilando »

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.
Last edited by Vacilando on 2004-07-15, 19:12 UTC, edited 1 time in total.
Travel in All Senses
http://www.vacilando.net
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
User avatar
Vacilando
Junior Member
Junior Member
Posts: 10
Joined: 2004-07-15, 10:17 UTC
Contact:

Post by *Vacilando »

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
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
I'm using FTP in my local network. As you can imagine it's anything but slow. Unfortunately I cannot use it to synchronize...Speed cannot be the reason!
User avatar
Vacilando
Junior Member
Junior Member
Posts: 10
Joined: 2004-07-15, 10:17 UTC
Contact:

Post by *Vacilando »

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?
Travel in All Senses
http://www.vacilando.net
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

it would be a good idea to do a md5 or other hash signature of the uploaded file
I doubt that can be done with FTP...

Roman
Last edited by Hacker on 2005-02-23, 23:06 UTC, edited 1 time in total.
User avatar
Vacilando
Junior Member
Junior Member
Posts: 10
Joined: 2004-07-15, 10:17 UTC
Contact:

Post by *Vacilando »

Mas pravdu, Roman. Tiez som si to potom uvedomil.
Travel in All Senses
http://www.vacilando.net
hammer
New Member
New Member
Posts: 1
Joined: 2005-02-21, 09:16 UTC

Synchronize FTP by content?

Post by *hammer »

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 :cry: 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 8)
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!
User avatar
Vacilando
Junior Member
Junior Member
Posts: 10
Joined: 2004-07-15, 10:17 UTC
Contact:

Post by *Vacilando »

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! :D
Travel in All Senses
http://www.vacilando.net
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Post by *ado »

Vacilando wrote:Hammer - I am still waiting for it, too. I agree it should not be complicated to implement.
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 code :-) )

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
Post Reply