Question Backup Raspberry Pi4 Remotely.

stchman

Distinguished
Oct 7, 2012
146
4
18,695
Hello all.

I have a Raspberry Pi 4 that I use to run my Plex Server. I have Ubuntu 22.04 installed on it, no GUI, and I connect to it via SSH. The OS runs from the SD card and I have an attached SSD via USB for my movies.

Everything runs fine, I would like to do periodic backups of the SD card in case something happens. I have done backups using dd, but that requires me to shut the Pi down, remove the SD card, and do a backup.

I was wondering if someone has any advice on backing up the SD card.

Thanks.
 
Perhaps:

https://raspberrystreet.com/learn/how-to-backup-raspberrypi-sdcard

https://forums.raspberrypi.com/viewtopic.php?t=307718

That said, I am not sure about the use of the word "remotely". Do you mean logging into the Raspberry Pi from some other location and then initiating the backup?

In any case, I am do not understand what is driving the need to remove the SD and "go elsewhere" to plug in and backup that removed SD.

I would not expect that the source SD would need to be physically removed. The target SD could be in some sort of enclosure connected to the Raspberry Pi.

Once the backup is finished and verified then the backup SD would be removed from the enclosure.

My suggestion is to provide more detail about the current backup procedure.

Someone may spot some error or omission or commission in the procedure.

Or may have other questions.