I have a simple scenario where I need to generate releases for some java based software. What I've been doing manually is:
1- Build the software 2- Copy all that is needed to a "release dir" 3- Compress the file
Now I have added CI (jenkins) to create builds for me. Then I tried rsync to update a base install dir (which contains the last build). The problem with RSYNC is it uses timestamps. Since I just build a new version, all timestamps have changed. I there something I can do to compare the files in binary mode?
This is what I did. For now, src1 and src2 are the same. The only difference is the timestamp as src2 is a copy of src1. Then, rsync copies all the files to dst. I was expecting dst to be empty.
rsync -av --progress --stats --compare-dest=../src1/ src2/ dst/
So I tried the following. I generated a copy of src1 with the same timestamp and when I execute the same command, dst is empty. Which led me to believe rsync uses timestamps.