Linked Questions

319
votes
18answers
439k views

How do I backup my Raspberry Pi?

I have been writing programs for my Raspberry Pi (running Raspbian) for a few weeks now and would like to make sure I protect the work I have done. How can I backup the files I have created? Can I ...
90
votes
9answers
114k views

Can a Raspberry Pi be used to create a backup of itself?

This question answers the question of how I use an external computer to create a backup of my RPi. I'm wondering whether I can create a backup image of the SD card that is currently in use, and ...
6
votes
1answer
7k views

Easy backups and snapshots of a running system with LVM

LVM (Logical Volume Manager) has some useful enhancements. You can make a snapshot, then check new programs and if they don't work as expected or you don't like them you can simply revert to your ...
4
votes
4answers
10k views

How do i expand file system on raspberry pi 4 manually

I have just flashed an image of my original 16 GB SD card (the one that comes in the raspberry pi kit) to an new 128 GB card. It booted up fine but when i tried to expand the filesystem using raspi-...
3
votes
3answers
1k views

Raspberry Pi 3 Model B SD card cloning

I have one Raspberry Pi (3 Model B) with mostly working software. I will need 6 Pi's (same model) to behave similarly. So I thought that it would be a grat idea to just clone 6 SD cards from working ...
2
votes
1answer
2k views

How to Backup/Shrink the image of my working Raspbian SD Card

I want to shrink the image to minimise storage and to efficiently distribute this image to others who may have smaller SD Cards.
3
votes
4answers
1k views

apt-get update errors after copying Raspbian to new SD card

I copied a working raspbian buster installation from one SD card to another (raspberry pi 4). I did so by simply calling dd if=/dev/mmcblk0 of=raspbian bs=1M on my Notebook with the existing SD card ...
1
vote
4answers
156 views

How can I share my SD card image?

I need my SD card to be cloned and shared. One of the obvious way is to use Win32DiskImager. However it has some disadvantages: It's huge: it has a size equals to the size of the cloned SD card (even ...
2
votes
2answers
86 views

Why is the volume ID of the root partition of Raspbian always [7ee80803]?

I noticed that no matter which microSD card I burn the Raspbian image onto, its "identifier" is always 7ee80803. This appears counter-intuitive to be because "disk identifier" is something written in ...
1
vote
3answers
183 views

Can I mount an USB stick (ext4) and create a backup of the Pi using the dd command?

I want to use the following command: sudo dd if=/dev/mmcblk0 of=/mnt/myBackup.img bs=1M What if the USB drive was formatted to vfat?