Questions tagged [backup]

Questions about what and how to backup your Raspberry Pi

Backup refers to additional copies of important data and configuration files, on a separate disk or on a cloud service.

Common questions

  1. http://raspberrypi.stackexchange.com/q/311/46
184 questions
329
votes
18 answers

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 simply plug the SD card into my Windows (XP or 7)…
Steve Robillard
  • 34,478
  • 17
  • 103
  • 109
102
votes
9 answers

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 copying it to a file on a USB storage device. Is this…
Eric Wilson
  • 1,715
  • 5
  • 15
  • 12
21
votes
5 answers

How to make an image (.img) from what's on the SD card (but as compact as the original one)?

I tried: sudo dd bs=4k if=/dev/mmcblk0 of=/media/1BAB47551C66A42B/raspbian_migs2.gz It creates an .img file with 7.6 GB (card size, BUT what's on the card has 700 MB). And: sudo dd bs=4k if=/dev/mmcblk0 | gzip >…
mf_
  • 313
  • 1
  • 2
  • 6
21
votes
4 answers

Easiest way to return to a known good state when overclocking

If I try to overclock my Pi, I want to go up to the point where the Pi won't boot anymore, or won't be stable enough. At this point, I want to come back to the latest known good settings for the /boot/config.txt file. How can I do this easily? Do…
Xavier Nodet
  • 432
  • 1
  • 3
  • 10
20
votes
3 answers

How to clone Raspberry Pi SD Card on Windows, Linux, and macOS?

I want to make a back up of my raspberry pi because I have done a lot of work and repeating the process would take a lot of time. How does one go about making an image of a Raspberry Pi SD card for the following operating…
ob1
  • 459
  • 1
  • 3
  • 13
17
votes
4 answers

Backup Raspberry Pi automatically, with incremental backups

There are some different questions and answers on this subject. However, when searching I have been unable to find an answer that could be considered "canonical" or that gathers the various options in one place. I would like to backup the contents…
P A N
  • 331
  • 2
  • 4
  • 14
16
votes
3 answers

How to shrink an image file after allocating full space

I'm in the process of experimenting with backing up a Raspberry Pi (Raspbian) sd card. I'm using Win32DiskImager to read the image (from SD card reader) onto my HDD, successfully - but now the size issue. The image is just bigger than the original…
Renier Delport
  • 361
  • 1
  • 4
  • 12
15
votes
9 answers

Can I backup my SD card with Disk Utility on OSX?

I see a lot of backup instructions like this: How do I backup my Raspberry Pi? ...involving the command line in OSX. But can't I just use the OSX "Disk Utility" to create a "New Image" from the partition on my SD card? Is that not a recoverable…
pinhead
  • 421
  • 1
  • 6
  • 17
12
votes
3 answers

Would you recommend a Raspberry Pi as a remote file backup device?

I'd like to have a computer at home that I rsync my files to from anywhere, preferably at any time I choose. The daily volume of data will rarely exceed 100M. It needs to be cheap and easy to replace, not fast (it's for backup/archiving purposes…
reinierpost
  • 223
  • 2
  • 6
10
votes
2 answers

Is this the correct usage of rsync to create a Raspberry Pi backup?

Pardon my ignorance, I am a new user of this site, Linux, and the Raspberry Pi. The following is a link to a question, from which I used user goldilocks' well documented answer of using rsync, to create my own rsync command to make a backup to a…
chaoticslacker
  • 337
  • 1
  • 2
  • 12
9
votes
5 answers

Restore PI from Pi itself

Just started playing around with a raspberry pi model b+ I've had sitting around for ages and I had a question? Is it possible to restore a Raspberry Pi from itself? E.g: Can I put an image on the microSD card, and then reboot the Pi to install the…
TommyBs
  • 201
  • 2
  • 3
9
votes
4 answers

Self healing SD Card partitions

Many sd cards are rather fragile. I've had a pi for about 2 years now and the main failures were due to the sd card getting corrupted for a reason or another. I'm wondering if there is some development done to "strengthen" the sd card on boot. I…
Eric
  • 226
  • 1
  • 6
8
votes
1 answer

"No such file or directory" while backing up the SD card using dd on Mac

The diskutil said that my SD card is located on /dev/disk4, so I typed sudo dd if=/dev/rdisk4 of=~/Desktop/backup.img bs=1m to backup my SD card. But there is a message dd: ~/Desktop/backup.img: No such file or directory What's the problem?
jcwu
  • 83
  • 1
  • 6
7
votes
4 answers

Create a Raspberry pi backup without dd

I would like to backup the entire content of my Raspberry Pi SD Card on linux PC. I have found online many tutorials that suggest to use dd to perform the operation. However my SD Cards have a wide free space that doesn't require to be saved on…
Pierre HUBERT
  • 201
  • 2
  • 8
7
votes
3 answers

Clone Raspberry Pi SDCard to file on Mac OS X?

Is there a simple way using Mac OS X (shell preferred) to clone an entire SDCard from the SDCard slot (byte-for-byte)), to a file? I would then want to reverse the process and restore the image from the file to the SDCard. I was considering using…
Will
  • 373
  • 3
  • 16
1
2 3
12 13