Open media vault allows you to run a NAS server on your raspberry pi. the easiest way to install it on your pi is to install the default “lite” version of the OS. That is the one with no “Desktop” and then run the following script:
“Why!?!?” That’s what I was asking when my pi stopped working. After days of configuration and tinkering it just wouldn’t connect to the network anymore. I said to myself “Welp, I guess I’ll reinstall from scratch” and spent the next few hours installing and setting everything back up again.
Solution? Make a Backup using a Mac
Obviously this is what I should have done from the beginning. Now what’s the “right” backup solution?
The simplest one is to insert an identical sd card into a card reader and insert that into the USB port. And then running this command from the terminal while the pi is off. Replace /dev/mmcblk0 with the location of your pi installation drive, and /dev/sda with where you want to store it to.
# Warning: Do not do this on a raspberry pi system that is powered on. It might work, but might not since your system may write stuff at the same time. sudo dd if=/dev/rdisk5 of=/dev/sda bs=4M status=progress
If you’d like to save the data to a file on your computer, use the following command. When running this on my own system, it took a long time (about 25 minutes or so), and doesn’t provide any output while running, so be patient with it when it is running. Source: https://forums.raspberrypi.com/viewtopic.php?t=46911
Then at the end, I swapped the SD cards to verify that the backup worked and it did!
For the people willing to install more stuff
Additionally if you installed zstd and pv, you can use combine them for a small and fast file with estimation replace 60906M with your estimate of the transfer size or use it without the -s and 60906M to just have a progress bar without a time estimate: