devramsean0 / image-sync

An Image Sync system
MIT License
0 stars 0 forks source link

Image Syncing #53

Open devramsean0 opened 6 months ago

devramsean0 commented 6 months ago

On every successful set of uploads/deletions to the connected S3buckets create a hash and save it to DB. Then at the start of every sync job generate a hash and compare it. If the hashes are the same, stop the job. If they are different, do the following: if the image exists in the DB, create and compare a hash. if identical do nothing if not replace the image, if the image doesn't exist in the DB, create it and then upload the image. Repeat for every image.

Run this job every 5mins