So, I’m sure you all know what spawned this thought.
I run a periodic rclone job from my NAS to ACD, giving me both Cloud backup and mobile access to my photos and docs. I’ve always wondered how I might be able to keep this running in a regular, automated way, but also avoid syncing a load of encrypted/locked files up (over-writing my backup) if I was hit by a ransomware malware attack.
Thought occurred to me that it might be possible to put some validation into the rclone sync process so that known file types (jpeg/png/tiff/etc) are checked for validity as the copy is processed - and if (for example) a .jpg file isn’t readable as a valid JPEG, it’ll be skipped. That way, rclone would avoid uploading corrupt/encrypted files and trashing my backup.
I suspect currently it would only be feasible for images/photos (and maybe video). Doing the same for other file types would be long and unweildy (e.g., checking a valid Word doc is uber-complex). But the major proportion of my backup is the 200,000-odd photos I and my wife have taken over the last 10 years, so it would be a great safety net.
Obviously, this wouldn’t work for people who intentionally encrypt when they back up, but for those of us that don’t…
Thoughts? Am I being insane?