Posted January 29, 2022
Lets say, you have fileserver (I have openmediavault) that has diskA and diskB, where one is for storage and other for backup. Regardless of filesystem that you use, you probably use rsync for this.
Here is a wrapper script which I created, that does rsync A > B in a way, that can
a) verify all contents (by checksum dry-run comparing them),
b) verify and sync all contents (by checksum comparing them),
c) fast-sync contents (regular) and,
d) hybrid sync, where it builds a diff-list fast using delta and then goes checksum over it. More accurate, more secure, and omits checksumming everything.
It also guards against forgetting the backslash on the source dir and allows to append extra options down to rsync.
Modify it as you like. Nothing fancy, but may be interesting for few.
https://pastebin.com/6ACkfE6i
Here is a wrapper script which I created, that does rsync A > B in a way, that can
a) verify all contents (by checksum dry-run comparing them),
b) verify and sync all contents (by checksum comparing them),
c) fast-sync contents (regular) and,
d) hybrid sync, where it builds a diff-list fast using delta and then goes checksum over it. More accurate, more secure, and omits checksumming everything.
It also guards against forgetting the backslash on the source dir and allows to append extra options down to rsync.
Modify it as you like. Nothing fancy, but may be interesting for few.
https://pastebin.com/6ACkfE6i