×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

How to properly backup PI4?

  • Posts: 67
  • Thank you received: 3
I did a quick google and came across a link to this howto which includes how to shrink the image down

robotzero.one/headless-pi-zero-backup-clone/

Perhaps that's what you are after?
3 years 1 month ago #67839

Please Log in or Create an account to join the conversation.

  • Posts: 912
  • Thank you received: 86
This must be it - thank you!
The second card/drive has to be empty, right?
(I tried that utility a while ago - didn't work then for some reason...)
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 3.
3 years 1 month ago #67863

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 140

The card you are copying too, does not need to be empty as it will get formatted as part of the copy process...
3 years 1 month ago #67867

Please Log in or Create an account to join the conversation.

  • Posts: 912
  • Thank you received: 86
I meant - if I put a previously backed-up card there which is also bootable - would the system not get confused by having two bootable cards/drives?
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 3.
Last edit: 3 years 1 month ago by maxthebuilder.
3 years 1 month ago #67868

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 140

If you put a fully bootable card in the RPI slot, then yes I think it will boot from that SD card first....
3 years 1 month ago #67872

Please Log in or Create an account to join the conversation.

  • Posts: 1221
  • Thank you received: 565
Of course, you can insert the card after the Pi is already booted, e.g. by using an SD Card reader connected to USB, so there would be no issue with booting from it.
3 years 1 month ago #67902

Please Log in or Create an account to join the conversation.

  • Posts: 912
  • Thank you received: 86
Ah... of course. Silly me.
Thanks!
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 3.
3 years 1 month ago #67903

Please Log in or Create an account to join the conversation.

  • Posts: 351
  • Thank you received: 109

Replied by nou on topic How to properly backup PI4?

Running "sudo fstrim /" on SD card should erase free space on SD card so then you can run fastest compression so image would have similar size than real used space.

On my normal Linux desktop I run something like "dd if=/dev/mmbclk | gzip -0 > rspi-backup.gz" so it compress on the fly.
Last edit: 3 years 1 month ago by nou.
3 years 1 month ago #67906

Please Log in or Create an account to join the conversation.

  • Posts: 912
  • Thank you received: 86
I am a Linux idiot but will give this a try.
Thanks!
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 3.
3 years 1 month ago #67909

Please Log in or Create an account to join the conversation.

  • Posts: 351
  • Thank you received: 109

Replied by nou on topic How to properly backup PI4?

Small mistake gzip accept only -1 as fastest compression not -0
3 years 1 month ago #67910

Please Log in or Create an account to join the conversation.

  • Posts: 912
  • Thank you received: 86
So, I got two USB sticks, booted from one, inserted the second one.
Launched SD Card Copier.
Now I have two drives in the list but they have exactly the same names!
Duh...
How do I tell which one is which?

Thanks!
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 3.
3 years 1 month ago #68040

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 140

You should not use two identical drives.....they need to be different....and why two USB drives..?? Why not back up from the SD card...?
3 years 1 month ago #68056

Please Log in or Create an account to join the conversation.

Time to create page: 1.036 seconds