https://www.snapraid.it/

Example of config with LUKS + snapraid + mergerfs, whole fstab and crypttab

https://old.reddit.com/r/DataHoarder/comments/5guyxv/whole_disk_encryption_nas_snapraid_do_any_of_you/davalh1/
more info on encryption
https://old.reddit.com/r/DataHoarder/comments/5guyxv/whole_disk_encryption_nas_snapraid_do_any_of_you/dc3qbqp/

scrub cron info
https://old.reddit.com/r/Snapraid/comments/ldv4ad/how_often_to_scrub/

for scrub problems, remember to stop all writes to disks
https://old.reddit.com/r/Snapraid/comments/lijx6b/getting_data_errors_every_time_i_run_a_scrub/

running snapraid for very big files can be problematic for rebuild as it creates new file to reconstruct corrupted file, encrypted containers with size nearing whole disk is discouraged
https://old.reddit.com/r/Snapraid/comments/yynn68/can_i_use_snapraid_with_drives_that_have_a_single/izzwa2a