Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • compare only the file size + date. Commented Aug 29, 2016 at 14:54
  • 2
    This is exactly what the rsync program is designed to do; detect differences and update the target if it's changed. Commented Aug 29, 2016 at 15:02
  • so can you use rsync with http urls? Commented Aug 29, 2016 at 15:25
  • What's the end goal? Why compare the files? If you want to compare a hash of the two files you will need to either download the remote file in order to hash it or have a way of running the hash command on the remote host. If you are able to run arbitrary commands on the remote host, I suggest using a protocol other than http (such as rsync, which has already been suggested). Commented Aug 29, 2016 at 15:38
  • the remote host will be a repo of files for a game server that are publicly accessible. The local machine can be anyone's server that wants to host a game server. So im not sure having anyone login to the remote server with ssh would be a good idea? Unless I can correctly lock it down I guess. Should an update for the game server be released the remote repo can be updated with the new files. The local game server can compare these and download required files. Kind of like how SteamCMD downloads updates to game servers. My idea was for the to use .md5 files that I generate on remote host. Commented Aug 29, 2016 at 16:08