I have been using a desktop version of Pi OS - Bullseye on my Pi Zero 2 and I think it's a good time to try headless as I am getting used to controlling my pi through SSH. I am planning to use Pi OS Lite Bullseye (64bit).
My question is how to back up the headless OS. For the desktop version, it's pretty much just one-click copy and done.
Surprisingly there is not much information about how to easily copy the sd card. It looks like the Windows pi imager does not have the functionality which would be very useful though.
If you have done a headless sd card backup (clone), could you guide me on how to do it in a terminal or any easy/secure method? Any reference would be very useful as well.
Thanks!
"this takes a long [time] to make an image"
. Not in my experience; perhaps you're backing up to a slow thumb drive - or have the "jumbo" image that includes everything? As a relative comparison for backup time, try a backup usingdd
:) Also consider the fact that after the original image is created, updating the image to capture changes to your system is easily automated (e.g.cron
orsystemd
), the updates are (in my case) typically less than 60 seconds to a NAS drive. – Seamus Apr 24 '22 at 20:37