5

There are several questions like this but they are a bit old.

I have a pi zero running Raspbian. The pi is enclosed in a metal case (don't worry, it's vented) and I can only access the SD card by disassembling the case, which is tedious and impractical for routine backups.

I am using Mac OS and would like to backup the entire SD card over the local wifi. Of course I have found many pages on this topic, but I would like to hear from people who have been able to do this successfully. What tools and approach have you used?

Any experiences of success using recent versions of Raspbian are appreciated.

Thanks!

Mitch
  • 55
  • 1
  • 6

1 Answers1

3

You can do this easily using image-utils. There's another answer here that shows the step-by-step directions. image-utils is available for download from here, or from this GitHub repo if you prefer that.

To save the backup on your Mac over the network, you will need to execute two additional steps:

  1. Create a SMB share on your Mac: This is off-topic here, but it's not difficult, and there are many how-tos available. Here's one from Apple, and this search term will yield many others.

  2. Mount the SMB share on your RPi. I think the easiest way to do that is via the CLI, creating an entry if /etc/fstab - similar to this, but adapted to your systems:

//YourMacNetworkName/NameOfShare /mnt/MyRPiZero/backup cifs rw,username=seamus,password=your_password,nofail,vers=1.0 0 0

Where /mnt/MyRPiZero/backup is the "mount point" for the share on your Mac. Use this as the destination for your backup image.

Seamus
  • 23,558
  • 5
  • 42
  • 83