Questions tagged [backup]

Questions about what and how to backup your Raspberry Pi

Filter by
Sorted by
Tagged with
3 votes
9 answers
19k views

Backing up SD card generates a huge .img file

I am trying to back up a 16GB SD card as it is proposed here: How do I backup my Raspberry Pi? I have started with 2017-01-11-raspbian-jessie-lite.img and then did some work with FFmpeg (cloned & ...
3 votes
2 answers
346 views

Raspberry Pi UPS with LiPo Battery

I have been working on a battery back up for my raspberry. The idea is classic: connect power bank to wall outlet and raspberry to power bank output. It works well with only battery power. But when ...
1 vote
1 answer
720 views

Cloned Jessie image fails to acquire a dhcp address

I have a very nasty issue with Jessie :-( Background: I wrote a tool called raspiBackup which backups and restores a Raspberry and because it works fine for me and helped me multiple times to recover ...
0 votes
0 answers
35 views

New SSD on Raspberry PI

I am trying to add a new 8TB SSD (connected by SATA to USB Enclosure) to my Raspberry Pi 4, to use it as a Backup of my 8TB media drive from the PC. I would set this up using openmediavault. I did ...
0 votes
1 answer
407 views

Can I clone an existing OSMC installation onto a separate card that runs Berryboot?

So I have a Raspberry Pi 3B that I have setup to run OSMC. I would like to use the same Pi, but be able to boot from a choice of systems. Berryboot seems like a perfect solution, but is there a way ...
0 votes
1 answer
372 views

Can't backup RPi using dd. One partition causing issues

I've been trying to backup my RPi Model B but I'm having no luck whatsoever. Here's what my Macbook's terminal shows under "diskutil list": /dev/disk2 (internal, physical): #: TYPE ...
332 votes
18 answers
457k 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 ...
1 vote
0 answers
29 views

Cloning my Raspberry Pi OS without an SD card [duplicate]

I'm running this OS version on my raspberry pi version 4 ... # uname -a Linux raspberrypi 5.10.17-v7l+ #1421 SMP Thu May 27 14:00:13 BST 2021 armv7l GNU/Linux I want to clone my current OS into a ...
0 votes
0 answers
57 views

PiShrink creating files with different sizes with the same input

I've recently started using PiShrink to decrease the size of backup images and I noticed that the file size of an with PiShrink shrunken and xz compressed image sudo pishrink.sh -Z input_image.img ...
-1 votes
2 answers
639 views

Safe method for SD backup and recovery on a Mac

I have tried several methods on my Mac to backup and recover an image of the SDs on my raspis. The only method that has consistently proved to work for me is the "dd" from Mac terminal. The ...
15 votes
9 answers
28k views

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 ...
-1 votes
2 answers
561 views

"Is borg working on the server?" [closed]

I'm trying to setup an automated backup system to backup my Raspberry Pi's data to my Mac Mini. However, calling neither borg init nor borg create from the RPi to the remote Mac Mini repo host seems ...
-1 votes
1 answer
307 views

e2fsck on Raspberry Pis

I need to run e2fsck on the raspberry pi, because I want to create a shrinked Backup. I have mounted an external server inside /mnt/BACKUP. There I have created an bash script. It will first create a ...
20 votes
3 answers
181k views

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

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 ...
103 votes
9 answers
130k 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 ...
1 vote
3 answers
9k views

Use SD Card Copier to create backup to USB, then copy back to SD card?

I'm trying to make a backup of my raspberry pi (raspbian) so I can come back to this backup just in case something bad happens. The problem is that I only have 1 SD card. I know that you can use SD ...
1 vote
4 answers
1k views

Timeshift does not work on pi4

I really like timeshift for backup and restore because it's simple, works well, and I can store the backup locally. I have not been able to get it to work on a pi though. When installed from apt ...
0 votes
1 answer
32 views

Can I capture photo and video uploads on my network?

Brand new to the community but will be setting up pi hole this week on a pi zero w. I have an Android phone and am backing up all my photos and videos to Google photos. Wondering if I can somehow use ...
5 votes
4 answers
1k views

dd for image backup

My SD card corrupted itself but I have a back up image. The partition table leave 1GB unallocated space at the end so that I can restore to any 8GB memory card regardless of memory fluctuations. ...
1 vote
2 answers
444 views

What would be an appropriate external drive for RaspberryPi backups?

I am running my Raspberry 24/7 and would like to use a backup-script on a daily basis via a cronjob. That script puts certain contents together in an archive and should then store the archive ...
7 votes
3 answers
7k views

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 ...
1 vote
1 answer
971 views

Restoring a Raspbian system with an rsync ssh backup: permissions at backup time

I have a Raspberry Pi 2 running Raspbian Jessie. It is being used as a reverse proxy for my various self-hosted services, it is running openHAB, it is my mosquitto server, etc. I would like to create ...
2 votes
4 answers
3k views

Are backups using dd if=/dev/mmcblk0 safe and consistent?

Conventional wisdom has it that creating backups by using dd if=/dev/mmcblk0 ... from a live filesystem is prone to error. Changing a filesystem that's being copied as an image will result in a ...
0 votes
1 answer
568 views

Installed Raspbian and can't backup with Timeshift

I haven't seen this issue posted anywhere else. It's not the same issue. Basically, I'm installing Raspbian with a fresh install. I boot into it and am immediately low on disk space. Here's why: df -h ...
-1 votes
1 answer
273 views

Problem backing up Raspberry Pi with Mac

Because I have installed a bunch of things for a larger project on my Raspberry Pi 3 Model B, I would like to backup the entire (bootable) SD card on my Mac. I tried to insert the SD card into my Mac ...
1 vote
2 answers
319 views

Recreate SD card from separate boot and rootfs partitions

I backed up my SD card incorrectly. Instead of making a full copy of the SD card I backed up the boot and rootfs partitions separately. How do I recreate the SD card image with the separate files? ...
0 votes
2 answers
77 views

How to manage installed apps, settings, and other tweaks (back-ups)

I use my Pi for a couple things: SSH VNC SMB + mini dlna Game streaming I have also installed some stuff on it like pihole. I might wanna start using it for hass.io as well at some point; perhaps ...
0 votes
1 answer
40 views

Rescue file from backup

I made test backup from my Raspberry sd-card to usb-stick using SD Card Copier and now i need to rescue one text file from it. Earlier when i plugged it in, it said "unrecognized format" or ...
16 votes
3 answers
29k views

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 ...
3 votes
1 answer
6k views

How to backup entire Raspberry pi SD card over network?

There are several questions like this but they are a bit old. I have a pi zero running Raspbian. The pi is enclosed in a metal case (don't worry, it's vented) and I can only access the SD card by ...
0 votes
0 answers
49 views

Pi 4 - Any good Backup Solutions for Backing Up attached External HDD to another attached external HDD on a Schedule

I am looking at building a Pi 4 NAS using Open Media Vault using some gear I have lying around the house. I have a external WD USB 3.0 HDD and an external 4TB USB 3.0 HDD I was planning on setting up ...
0 votes
0 answers
245 views

How to clone a Pi that has flash instead of an SD card

I'm working with the Pi CM3+, which has 32GB of flash memory (at least my specific one does). While of course it needed an image on an SD card to initially boot, since then it has been operating ...
0 votes
3 answers
5k views

How to backup a Raspberry Pi over SSH?

I tried following: ssh <pi>@<ip> "sudo dd if=/dev/mmcblk0 bs=1M | gzip -" | dd of=~/Desktop/pibackup.gz sudo: no tty present and no askpass program specified 0+1 records in 0+1 ...
6 votes
1 answer
12k 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 ...
1 vote
2 answers
342 views

Copy my setup from a non-booting SD card to a fresh USB install

Alright, long story short, I've been running a copy of Raspbian Lite for a while on a RPi 4, off a MicroSD card. I'm using it along with a couple of USB3 drives as a makeshift NAS, where I store my ...
0 votes
1 answer
301 views

Shrinking image file I cant open [duplicate]

I have a certain custom Raspbian image downloaded from the internet for a project which I need to use. The file is a little less than 32 GB and I am having issues getting a card which can fit that ...
0 votes
1 answer
2k views

Use Overlay, ext4 and squashfs filesystems, to create flashable Raspberry Pi SD Card

Here's one for the guru out there.. I use a Raspberry Pi 3B+. It has an SD card with two partitions. So the layout is: mmcblk0 179:0 0 59.5G 0 disk ├─mmcblk0p1 179:1 0 256M 0 part /boot ...
0 votes
2 answers
256 views

Can preserve LVM partitions while changing sd card and os?

I want to make a NAS storage with Raspberry Pi and attached drive. I would like to create partitions on my drive with LVM, but I'm afraid, that once my sd card with os breaks, I will lose my all data, ...
0 votes
2 answers
810 views

Piping dd with pishrink and ssh to remotely create a shrunk backup image of a raspberry pi

I usually create remote backup image of my raspberrypi from my macbook by using: ssh [email protected] "sudo dd if=/dev/mmcblk0 bs=1M” | pv | gzip - | dd of=/Users/USER/Downloads/pibackup.gz There ...
1 vote
2 answers
2k views

Periodic backup of Rpi3 Stretch SD card

Starting with a pristine install of Raspbian Stretch on a 16GB SD card, I plan to set up various sets of software packages. I would like to start with a baseline install and create a restore-point (...
1 vote
2 answers
5k views

Truncating SD card image

I backed up my Raspbian install with dd: dd id=/dev/sdb of=/home/user/raspbian-backup.img That gives me a img of the whole card (16GB). Then I followed a tutorial to resize the image and used: ...
1 vote
0 answers
566 views

Raspberry 4 - NAS, slow copying over the network

Raspberry 4 - NAS, slow copying over the network I have problem with copying backup speed over network, currently only 30MB/s. How can I confirm that this is the maximum data backup speed? I tested ...
0 votes
0 answers
62 views

How do I make a backup with DD? [duplicate]

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 ...
-1 votes
3 answers
3k views

Problem copying SD card with `dd` on OSX

i am trying to back up my sd-card(16GB) with Mac using: sudo dd if=/dev/rdisk3 of=~/Desktop/raspberrypi20161117_r.dmg bs=1m Output: dd: /dev/rdisk3: Input/output error 2996+0 records in 2996+0 ...
2 votes
3 answers
3k views

MySql backup database every night

I have service and MySql database on my Raspberry Pi 2B. Yesterday, my SD card in my phone died. I started thinking about database backup on my Raspberry Pi. Anybody have any experience with this? I ...
0 votes
1 answer
289 views

Do I need to stop services when performing a full system backup of Raspberry OS on a RPi4 using rsync?

Well I guess the title is pretty self-explanatory but to put a little more words on, I want to use rsync to perform a weekly, incremental backup of my RPi4 which is hosting Pi-Hole, Unbound DNS and ...
-1 votes
1 answer
717 views

Backup SanDisk Ultra 32GB using Win32DiskImager or Roadkill

I formatted the SD card using Windows Vista and SD Formatter. Then I copied NOOBs files, inserted it into the PI3 and installed all my softare (Raspberry...). The system works but I am unable to ...
1 vote
2 answers
300 views

Backup Pi onto same SD card, different partition

I am wondering if it is possible to: Partition an SD card into two (or three including boot partition) Install PiOS on one partition that it boots on Boot the Pi and make various software adjustments ...
0 votes
3 answers
4k views

how to create .iso file from Raspbian SD card with two partitions

a few years ago, when I created my Raspbian SD card from a downloaded Raspbian iso file, it created two partitions - boot and data. Now I want to clone what I have into a larger SD card. How can I ...
1 vote
1 answer
524 views

Backup with dd super slow when run as root

I have a simple script that backups Raspbian to a network share: sudo dd if=/dev/mmcblk0 of="/mnt/NAS/backup.img" When I manually run the script with sudo ./backup.sh, everything is fine, ...