I keep my laptop backed up using Google Desktop. It's how I keep my things like notes, pictures, etc., backed up. I recently have been reading about ransomware attacks increasing and I wanted to protect my files further. I settled on copying my Google Drive files to a flash drive and, the hope is, if a ransomware attack made its way into my Google Drive, then I'd have the flash drive as a backup.
To perform the back up, I wrote a small, very simple batch script that copied the files to my flash drive (I use Windows). I also got a micro USB drive that is small enough I can leave it in my laptop continuously if I wanted and not have to take it out with any fear of damaging it physically.
I'm a man of habit and I think it would be easiest if I just left the flash drive in the computer and, every night before bed, I can run my little script and it will copy all my files to it.
My question is, would this defeat the point of the backup? If a ransomware attacks the computer and my flash drive is plugged in, is the ransomware likely to target it? In other words, is it necessary to keep my flash drive disconnected from my laptop other than when I copy the files in order for it to serve the desired security function of keeping a backup from a ransomware attack?