Generate an .img and after use PiShrink #279
PabloPittana
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new making backups for my RPI4 and I'm following a guide to make an .img and after run your script to reduce it. And I think that you're able to make your script to be same result with one command.
Now I'm running this command to concatenate two commands:
sudo dd if=/dev/mmcblk0 of=/your/route/light_backup_$(date '+%Y_%m_%d').img bs=1M && sudo pishrink.sh /your/route/light_backup_$(date '+%Y_%m_%d').img
The first command make me a huge .img and the second reduce that .img. Think about to only run one command with pishrink to be able to do the same thing.
Some thing like this:
sudo pishrink.sh -A -R /the/route/backup.img
[-A to distinge you want to make the backup and reduce after] and [-R to put your destination route with the name of .img]
Thank you for you're time!! :D
Beta Was this translation helpful? Give feedback.
All reactions