Questions tagged [backup]

Questions about what and how to backup your Raspberry Pi

Filter by
Sorted by
Tagged with
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 ...
silverhammer's user avatar
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 ...
Jannis's user avatar
  • 1
-1 votes
2 answers
641 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 ...
Joan I's user avatar
  • 9
-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 ...
fpt's user avatar
  • 99
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 ...
Rajsharith's user avatar
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 ...
Chris Davies's user avatar
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 ...
bob mcgrath's user avatar
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? ...
Aage Torleif's user avatar
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 ...
S. ten Brinke's user avatar
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 ...
newbie-in-trouble-again's user avatar
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 ...
HippoMan's user avatar
  • 111
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 ...
Mitch's user avatar
  • 35
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 ...
jvenables's user avatar
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 ...
Isaac Middlemiss's user avatar
-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 ...
Micha93's user avatar
  • 109
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 ...
Micha93's user avatar
  • 109
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 ...
ardendolas's user avatar
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 ...
ImBadAtCoding's user avatar
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 ...
Nicokofi's user avatar
  • 101
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 ...
keratos's user avatar
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, ...
s-kaczmarek's user avatar
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 ...
Paolo Squadrito's user avatar
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 ...
tombomlom's user avatar
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 ...
Teso's user avatar
  • 121
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 ...
ParanoidPanda's user avatar
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 ...
problemshavearisen's user avatar
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 ...
Bassline Soup's user avatar
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 ...
Ben Z.'s user avatar
  • 1
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, ...
Dan's user avatar
  • 11
0 votes
3 answers
9k views

copy sd card through terminal

I'm trying to back up my retro pie SD card in case of corruption, but Retro pie does not have a desktop environment, so can't use the sd card copier tool. Is there some terminal command to do this? I'...
UNKNOWN's user avatar
  • 79
2 votes
1 answer
421 views

How to backup a compressed version of your raspberry pi sd card image on Windows 10?

I'm interested in backing up my hard work and time invested RPi image with all packages setting and files installed in there and put it on a RPi zero w from RPi 4B so I've seen this thread on the ...
MikeLemo's user avatar
  • 121
0 votes
2 answers
493 views

How to clone Raspbian installation stored on SD card to a desktop computer?

I have the following setup: A SD card with Raspbian installed, that is to configured for my preferences. A Raspberry Pi 4 using the above SD card. A desktop computer with an Intel i3 2310M-...
TheInternetIsNeat's user avatar
0 votes
2 answers
335 views

Backing up entire Raspberry Pi's state

I have a Raspberry Pi 3B+ that I use for random tinkering projects. What would be the correct way of backing up the entire "state" of the Pi, including any downloads, apps, scripts, settings, etc? ...
Pieter's user avatar
  • 103
2 votes
1 answer
375 views

Failed to start Load Kernel Modules after rsync restore

After restoring the whole raspbian system using rsync, I get following errors during boot. systemd[1]: systemd-modules-load.service: Main process exited, code=exited, sta... systemd[1]: systemd-...
wewa's user avatar
  • 273
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 ...
quizmaster987's user avatar
1 vote
1 answer
261 views

Back up system to hdd

I have a hdd connected to one of my raspberry pi’s that is on raspbian, now I would like to be able to backup my Linux machines 2 or more to that hdd on a regular basis to help with system restores. ...
upgrayyed's user avatar
2 votes
2 answers
894 views

Recover Raspberry Pi 3B+ / Raspbian Buster powered off during upgrade

Edit - I checked the version and the original SD A was actually at Buster. SD B is at Buster as well. My Raspberry Pi 3 B+ was turned off while running sudo apt-get upgrade. The SD card (SD card A) ...
lonstar's user avatar
  • 123
0 votes
1 answer
895 views

Pi4 backup/restore of /rootfs partition from bkup_rpimage

I've done a bkup_rpimage onto a USB3 drive using: https://github.com/lzkelley/bkup_rpimage From: https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=12079 But try as I may, I haven't found ...
ianl07's user avatar
  • 9
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 ...
lukehod's user avatar
  • 109
2 votes
3 answers
346 views

Retrieve data from several Raspberry Pi disk images

I have about 40 Raspberry Pi SD-Card backups, dating back several years, with different projects, some of which I barely remember. As they are clogging up my harddrive (400+ GB), I would like to ...
Markus's user avatar
  • 199
1 vote
1 answer
463 views

Copy / Back up all images on Android phone to SD Card with folders

I am running a Raspberry Pi 4 Model B as a VPN Gateway with OpenVPN. On my Samsung S8, I have the app OpenVPN for Android installed and the VPN tunnel to my home network works like a charm. What I ...
Ferit's user avatar
  • 131
1 vote
3 answers
792 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?
Lana.nl's user avatar
  • 11
2 votes
2 answers
360 views

Determining correct image size for Raspbian backup to fit only real data on rootfs

I regularly backup my Raspi using a script that rsyncs rootfs and /boot onto a image created with losetup. This is the current branch I am working on: https://github.com/ephestione/RaspiBackup/blob/...
ephestione's user avatar
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 (...
Web User's user avatar
  • 119
2 votes
1 answer
314 views

backup raspberry Pi OS

Hello i am running ubuntu mate on raspberry pi 3 and i would like to back up the img of the OS straight to an external usb. Do you have any suggestions ? Is this going to work ? sudo dd if=/dev/...
Ioan Kats's user avatar
  • 123
2 votes
0 answers
118 views

Create a minimal system backup, with personal files and configuration parameters, for cloud upload

There are currently many tools that let you fully backup a running Raspberry into either a clone device (SD/pendrive), like rpi-clone, or to a series of rsync incremental backups (RaspiBackup by framp ...
ephestione's user avatar
2 votes
3 answers
4k views

Why can't Pi 4B read a copied back-up micro-sd card in a usb card reader?

I am using the SD Card Copier accessory to make a micro-sd card back-up. The back-up card (in a micro-sd to USB adapter) is recognized by the copier as sdb, and I know that the copying is OK, because ...
Peter N's user avatar
  • 41
0 votes
0 answers
62 views

My Raspberry Pi crashed after pulling out USB drive from it

My Raspberry Pi's OS is Raspbian Stretch Lite. My Raspberry Pi crashed after pulling out USB drive from it. I'm not able to access it via SSH. I have connected the SD card of my Raspberry Pi to my ...
user8481790's user avatar
1 vote
2 answers
5k views

How to clone a ssd which I am using to boot

I have an SSD that is connected via USB to SATA cable to the Pi. I have a lot of files and settings saved on this SSD, I wanted to make a backup of this on another SSD, such that if something happens ...
Curious66's user avatar
1 vote
2 answers
7k views

Backing up a raspberry pi over the network

I have 4 Pis. On each Pi I have mounted my Airport Extreme (Apple router that has built in storage) to /home/pi/Airport. I would like to automatically backup each Pi on a set interval. Would doing ...
K. Shores's user avatar
  • 113