This is the proper way to build images. Trying to create one from a live install is bad idea and you'll leak data like logins and passwords unless you're very meticulous about cleaning up and scrubbing the unused portion of the image. If nothing else, you must ensure that the SSH host keys are deleted from /etc/ssh as it is a security vulnerability to leave them there.bls wrote: ↑Tue Oct 13, 2020 3:56 pmIf you're going to make several different install configurations, you might want to think about going the "other way". That is, starting from building customized images and then blast them to SD Cards when you need one. An easy way to do this is to use a tool like https://github.com/gitbls/sdm
I second that. In particular RonR's Image-Backup program made it so easy and efficient I now backup all the time instead of once in a while. I can't believe the hoops I used to jump through and some of my pals still do. If it ain't easy it tends to not get done.
Yes! At least, there is a simple GUI program to make your own image. It's Pi-Power-Tools.
Code: Select all
pi@raspberrypi:~ $ sudo ./image-backup Image file to create? /mnt/backup.img Initial image file ROOT filesystem size (MB) ? Added space for incremental updates after shrinking (MB) ? Create /mnt/backup.img (y/n)? y
I did look at your software, does it allow you to copy the current raspberry pi install to an img file?Botspot wrote: ↑Tue Oct 13, 2020 10:05 pmYes! At least, there is a simple GUI program to make your own image. It's Pi-Power-Tools.
Yes it does. Pi-Power-Tools includes an IMG Flasher. In addition to that, PPT includes many unique features that no other tool on earth can do. See more on its instruction file (README)
No problem, thanks for asking. Once you've made your image, PPT will come in quite handy either for making a quick edit or for flashing your SD cards.
Code: Select all
sudo dd if="$(zenity --entry --title="Device" --text="$(lsblk)" --entry-text="/dev/sdb")" | gzip > "$(zenity --entry --title="Backup" --text="Backup Name").img.gz"
I routinely use a procedure (based on RonR's code - but with documentation) https://raspberrypi.stackexchange.com/a/103991/8697RaspbianUser1 wrote: ↑Tue Oct 13, 2020 9:38 pmI am really struggling here, I don't know how to use RonR's software, I don't understand what its asking from me, I can get it installed and started but I don't understand the questions its asking.
Is there a simple GUI program which can just do exactly what rpclone is doing but instead of writing to a external device, writing to an image file. I just want to be able to store my backups on the cloud rather than using an entire SD card