I am looking to compare lots of local files with remote files in a http repository. The idea is that a bash script will check every file in the directory and compare with the remote version. If the remote version is different or only present remotely download and replace it.
I am looking at using md5 and maybe creating an md5 dir mirroring the repo with .md5 files. However the only issue is that to get the md5sum for each file can be slow and resource intensive locally as I am dealing with a few GB worth of files.
So my questions is what is the fastest method to compare the files?
Thank you
rsyncprogram is designed to do; detect differences and update the target if it's changed.rsyncwith http urls?