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
Смотрите видео Raspberry Pi: Remote Backup On Mac онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Arcade Spinner 05 Август 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 75 раз и оно понравилось 1 людям.