Raspberry Pi: Remote Backup On Mac

Published: 05 August 2024
on channel: Arcade Spinner
75
1

Backup your Raspberry Pi without removing SD card using Mac OS! I show you how to copy the Raspberry Pi's microSD card over the network while it's running on a Mac computer using SSH. In this tutorial, we use the 'dd' and 'gzip' commands to create an image of your Raspberry Pi and then restore your Raspberry Pi using the saved image from your Mac. No need to turn off your Raspberry Pi anymore to make scheduled backups.. Clone your Raspberry Pi as many times as you need without losing your data!

=== Commands Used ===
SSH into Raspberry Pi: ssh pi@yourraspberrypi (Replace 'pi' with your username and 'yourraspberrypi' with your hostname!)
List block devices: lsblk -p
Disconnect/kill SSH connection: exit
Back-up: ssh pi@yourraspberrypi "sudo dd if=/dev/mmcblk0 bs=1M | gzip-" | dd of=/Users/yourmacuser/Desktop/pibackup.gz status=progress
List disks: diskutil list
Unmount device: diskutil unmountDisk /dev/disk4 (Note: replace /dev/disk4 with your's!)
Restore to SD card: gzip -dc /Users/arcadespinner/Desktop/pibackup.gz | sudo dd of=/dev/disk4 bs=1M status=progress (Note: replace /dev/disk4 with your's!)

=== Suggested Videos ===
Clone | Back Up & Restore Raspberry Pi:    • Clone | Back Up & Restore Raspberry Pi  

#raspberrypi #raspberrypi5 #raspberrypiprojects #raspberrypi4


Watch video Raspberry Pi: Remote Backup On Mac online without registration, duration hours minute second in high quality. This video was added by user Arcade Spinner 05 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 75 once and liked it 1 people.