Backups are a good thing to have (although I keep screwing up the server I’m doing the backups on, but that’s another story).

For my Ubuntu systems I found „backintime“ which does a periodic backup and sends it to a local directory or server.

To keep things backed up on my NAS (Ubuntu based) I installed snapper, which does a snapshot of btrfs and zfs file systems. Be sure to add the right „ALLOW_GROUPS“ if you’re using it with Windows – that way, you can use the Windows „Previous Versions“ GUI to access previous versions on your samba network share.