Feature request : consider the time lag between server and client
Antoine Calando <[email protected]>
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, First I would like to thank the author and contributors, lftp is a very good ftp client with many usefull features. One of these feature I often use is the mirror command, but I have a problem with it. It is not a lftp bug, but maybe something it can correct by adding an option : if the hour on the server is not the same than on my client, it screws up the selection of the file to update. For instance, I create the file foo at 10h00 on my system. I mirror it (with -R) on the server, where the file should be dated 10h05, but because of the time-lag (or a misconfiguration), the file is dated 11h05. I update it locally, so the file is dated 10h10. But if I mirror the server content on the client with the -n option (only newer files), the file will still be downloaded and the updates will be lost! The solution would be to implement a "time offset" between server and client, and when comparing file according to their modification time, to use this time offset to check if files are really newer. The main problem is to get the server time. I don't think that there is any command to retrieve directly the server time. A way to get it would be to upload a dummy file, check its creation time with 'ls', then remove it. It implies to have a write access, but I think that is the only way to do it. Best regards, Antoine Calando