Currently I have Borg archives being creative hourly, via a cron script, for directories I'd like to be backed up. However, this is not exactly ideal. Ideally, I'd like backups to be created more than hourly while that portion of the filesystem is active. Conversely, sometimes one of the directories might stay unchanged for weeks at a time - so, creating hourly archives is just a waste of space, and I don't want to be manually switching portions off or on all the time.
From what I've been able to search, linux does not really have any robust system for continuous backups. If this conclusion is erroneous, then please do point me in the right direction.
But if that is true, I'd like to do the next best thing - have an archive only be created if a file has changed (i.e., checksums on the live filesystem do not match those of files in the archive... ideally).
Is there a way that a script, program option, or some other method can accomplish this?
Thank you.
restic
to take hourly backups of five (very different) machines at home (from the root down, everything), and in two years I'm using about 300 GB. I'm pruning backup snapshots by only keeping the most N recent hourly, daily, weekly, monthly backups, obviously.