Hi Everyone,
Every month I manually create a full backup of my Pi4 to a 64GB USB stick using the SD Card Copier tool.
I'll then open GParted and manually resize the USB stick down to 10GB.
I'll then remove the USB stick from the Pi, connect it to my PC, then use Win32DiskImager to create a .img file which I save to my NAS.
Which got me wondering, is there a way to create the .img image file of the USB stick from within Raspberry OS?
If it is possible, it would save me having to remove the USB stick and take it to my PC every time I want to do a backup.
My Google-fu is letting me down with this one, I've done lots of searching but haven't found what I'm looking for.
Any help greatly appreciated, thanks.
Re: Easy way to create .img images in Raspberry OS?
Thanks for the suggestion, I did spot that one during my searching, I just wish it included a way to reduce the resultant size of the .img file.
Re: Easy way to create .img images in Raspberry OS?
Puffergas wrote: Not exactly what you asked for:
viewtopic.php?f=63&t=281190&p=1703077
So I gave your suggestion a go, and it actually works brilliantly!
This is genuinely better than what I was hoping for, it creates the .img file, it's only 7.6GB in size, and it can be configured to save to a network share! AND it can be automated! (though I've yet to figure out how to do that).
Thanks again for your suggestion, great stuff.
