0

I installed Arch-Linux-ARM on a 128GB SD-card for my Raspberry Pi. Now I want to make a backup.

There is less than 1.5GB of data on the SD card and if I want to make an image with DD, DD wants to read the entire card and make a 128GB backup.

How do I get DD to backup only the relevant 1.5GB?

I also have a 16GB SD-card and would like to restore the backup.img to this card or any other SD-card.

The Arch Linux is installed on the SD-card in two partitions, this should also be backed up so that I can copy a functioning system to any data carrier.

Teso
  • 121
  • 1
  • 4
  • There are several solutions here https://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi Also check the related questions in the sidebar for additional solutions. – Steve Robillard Aug 26 '20 at 18:08
  • This douse not answer my question. iI run dd if=/sdb of=/home/USER/arch-rbp.img DD makes a 128GB image, on the SD card is 1.5GB data. – Teso Aug 26 '20 at 18:25
  • 2
    dd does not operate at a filesystem level. It copies devices at a block level (below the filesystem level). But this also means it has no awareness as to whether space is free vs. used. If backup integrity and space efficiency is the priority, you might update the question to "How to create a space-efficient backup?" – Tim Campbell Aug 26 '20 at 20:55
  • How do I get DD to backup only the relevant 1.5GB? ... you don't ... your question is like how do i hold my breath for 5 hours? – jsotola Aug 27 '20 at 00:24
  • I think I will buy a 4GB SD card and install Arch on it, make a backup and then I can copy this backup to other media. And yes, the post https://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi showed me new opportunities, thank you very much... ssh root@raspberrypi dd if=/dev/mmcblk0 | gzip -c > img.gz nice! – Teso Aug 27 '20 at 07:50

0 Answers0