backup sd card

The SARPi project forum. For anything and everything relating to Slackware ARM on a Raspberry Pi 1, 2, and 3. This forum is NOT a replacement or substitute for the Slackware (ARM) forums on Linux Questions website! Please try to seek help there first about any issues you may be experiencing, or question you might have, before posting on here.
User avatar
glorsplitz
Registered user
Registered user
Posts: 35
Joined: Sun Aug 07 2016 - 22:54:24

backup sd card

Postby glorsplitz » Sun Dec 11 2016 - 03:15:00

Hello all

I thought when I originally setup my rpi3 with slackware there was documentation here about how to backup the sd card.
Finally got around to looking for it and can't find anything here, maybe I imagined it?

googled a few dd commands:
dd if=/dev/sdx of=/path/to/image
for compression:
dd if=/dev/sdx | gzip > of=/path/to/image.gz
or dd if=/dev/sdb | gzip > backup.img.gz

restore:
dd if=/path/to/image of=/dev/sdx
when compressed:
gzip -dc /path/to/image.gz | dd of=/dev/sdx
or cat backup.img.gz | gunzip | dd of=/dev/sdb

Is that all there is to it? I'm trying to restore compressed image right now.
Has anyone backed up their sd card? What did you do? Did it go ok?
I have openelec on another rpi3 and looking to get another one going.
Theory is backup current sd card, restore to new one, change the ip and it should be good.

Thanks

User avatar
linicks
Registered user
Registered user
Posts: 124
Joined: Mon Oct 27 2014 - 20:26:01
Location: Pompey, England

Re: backup sd card

Postby linicks » Sun Dec 11 2016 - 10:31:36

Yes, it's here:

viewtopic.php?f=30&t=141

I back up regularly, and also use it to 'image' other cards. I have also done several restores when I cock something up.

It works fine.

Nick
https://linicks.net/

Q. What is the difference between a duck and an elephant?
A. You can't get down off an elephant.

User avatar
glorsplitz
Registered user
Registered user
Posts: 35
Joined: Sun Aug 07 2016 - 22:54:24

Re: backup sd card

Postby glorsplitz » Sun Dec 11 2016 - 19:26:15

Thank linicks, "when I cock something up", yea tell me about it ;)

I tried what I posted, compressed way, took couple hours or so and worked fine, slackware install and older srpi3 sd cards.

CHEERS!

Return to “SARPi Project - Slackware ARM on a Raspberry Pi”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests