G'day.
In Raspbian lite (so command line only), what is the easiest set and forget way to backup one's SD card to a connected USB drive? Or better yet via LAN to desktop computer HD.
Preferably to a compressed (so I'm not wasting space, as I frequently use SD cards with large amounts of reserve storage) image I can just quickly copy to another SD card to get going again. And with multiple copies, so I don't backup corrupted data and lose the good version before noticing. Bonus points if I can set the number of copies/space used before old versions get deleted.
I ask, since I use some cases and/or locations that make manually getting at the SD card a trial. Plus any backup system that isn't fully automated, is just asking to be ignored or forgotten.
TIA :-)