Backup to my mac options?

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

Backup to my mac options?

Post by /RaspberryPi »

Hey, I'm trying to set up automatic backups from my pi to my mac. Maybe the better solution is to just buy a hard drive and be done with it. Here's the big issue. I'm running this command:
ssh [pi@192.168.86.43](mailto:[email="pi@192.168.86.43"]pi@192.168.86.43[/email]) sudo dd status=progress if=/dev/sda bs=1M | gzip -f > ~/Desktop/pibackup_22-07-04_2.gz
Whatever. That should work fine, but I'm on 128 gb ssd, so it copies the whole thing. My mac def does not have the space for that. How can I avoid the empty part of the partition without losing any files? There are some jank sounding ones like putting it on an SD and then compressing, or adding a file with a bunch of zeros, or manually counting some stuff and then blocking. Is there no way to efficiently do this?
Thanks!

submitted by /u/tnw-mattdamon
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”