user1228352
user1228352

Reputation: 569

Generate diff file from rsync

Is it possible to just generate a diff instead of generating and applying the diff using rsync? My requirement is to generate diff on one machine and apply it on another machine. Is it possible using rsync? Please note that, want to sync just one file, not an entire directory.

Upvotes: 2

Views: 1083

Answers (1)

user1228352
user1228352

Reputation: 569

Found the solution. rsync has a special option called "--only-write-batch=" which allows you to produce diff file without applying it to the destination file. Client will pull the diff with an HTTPS request. At the client side, I am going to apply the diff to my file using "--read-batch=".

Upvotes: 1

Related Questions