wolpi / prim-ftpd

FTP server app for android
Other
580 stars 78 forks source link

Add check-file SSH_FXP_EXTENDED functionality (calculating hash) #350

Open lmagyar opened 1 month ago

lmagyar commented 1 month ago

Can be merged only after PR #349.

This is very useful for checking files during synchronization.

I gave up on rclone, osync and unison, because they are extremely slow over SSHFS, because SSHFS sends dozens of commands even for the simplest directory listing.

I started to implement a python script for fast bidirectional sync especially optimized for your sftp server (approx. 100 times faster check than the mentioned solutions above), and hashing the files on the first run speeds up operation even another approx 10 times). So this hashing is very useful.

Note: The implemented version only acceps requests for hashing the whole file.

wolpi commented 1 month ago

Ok, very interesting! Can you share the python script?

lmagyar commented 1 month ago

Definitely will. As soon as it runs stable in my family, I will upload it. It is very near... - But even my wife doesn't beleive me on this story. :D

lmagyar commented 3 days ago

(just rebased it to latest master)