I use this backup script to keep a macOS-like TimeMachine backup of my Linux boxes. It’s never failed me in several years of usage.