Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Monitor the size and offset when a client writes to a file

I'm working on a backupservice. It looks now at the stat attributes st.st_{mtim,ctim,size} and compares those with the backupversion. If one of those differs, the whole file is being written to the backuplocation.

It works over the network, I'm therefore looking for a more efficient method. Better would be only send the part over the network which has been changed.

fanotify under Linux offers some functionality to get info when someone is writing to a file, but not the size and the offset. Anyone knows it's possible, or is this something what should be added to fanotify?

Comments