Holy One
Posts: 29
Joined: Mon Jul 02, 2012 5:44 pm
Contact: Website

imaging the image for backup purposes?

Sat Jul 28, 2012 12:30 pm

installed from the current raspbian image, completely rebuilt the system to run as a minimalist headless server by pruning 800mb of stuff(tm). now I'd like to make a new image of this image for backup purposes ..

its been a while since I last used dd, can someone tell me how to go about it? I'm guessing since this was the official raspi image it should be a case of just copying and compressing?

tns
Posts: 1
Joined: Sat Jul 28, 2012 5:47 pm

Re: imaging the image for backup purposes?

Sat Jul 28, 2012 5:51 pm

It's just like imaging your SD card, except your input file is the SD and your output file is the new image that you want.

Example:
dd if=/dev/sdd of=~/my.raspi.backup.img

Holy One
Posts: 29
Joined: Mon Jul 02, 2012 5:44 pm
Contact: Website

Re: imaging the image for backup purposes?

Sat Jul 28, 2012 11:15 pm

wow literally that simple?

Holy One
Posts: 29
Joined: Mon Jul 02, 2012 5:44 pm
Contact: Website

Re: imaging the image for backup purposes?

Sat Jul 28, 2012 11:36 pm

in fact duh http://www.raspberrypi.org/phpBB3/viewt ... =26&t=9949

that is even easier and safer than dd'ing. :D

User avatar
HashberryPee
Posts: 66
Joined: Thu Apr 05, 2012 9:41 am
Location: Germany

Re: imaging the image for backup purposes?

Sun Jul 29, 2012 7:44 am

I'd recommend partclone. More effort but much smaller:
http://www.raspberrypi.org/phpBB3/viewt ... 19#p118519

User avatar
Jim JKla
Posts: 2218
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: imaging the image for backup purposes?

Sun Jul 29, 2012 7:54 am

You can also use the win32diskimager use save in place of write and remember to give it a new name. ;)
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

Jock in a Frock
Posts: 72
Joined: Thu Jan 12, 2012 6:39 pm

Re: imaging the image for backup purposes?

Sun Jul 29, 2012 8:05 am

I've started at thread about backup procedures, and I've posted a script in there for a scheduled backup process. It may be useful to you. Hvae a look here:
http://www.raspberrypi.org/phpBB3/viewt ... 63&t=12079

Holy One
Posts: 29
Joined: Mon Jul 02, 2012 5:44 pm
Contact: Website

Re: imaging the image for backup purposes?

Sun Jul 29, 2012 1:05 pm

hehe yeah sorry, I was a bit vague linking that topic. I just whipped the sdcard out the pi and put it in my win7 laptop and used the 'read' function from win32 disk imager. worked a treat. :D

raspfly
Posts: 132
Joined: Sun May 27, 2012 1:42 am

Re: imaging the image for backup purposes?

Wed Aug 01, 2012 9:38 am

tns wrote:It's just like imaging your SD card, except your input file is the SD and your output file is the new image that you want.

Example:
dd if=/dev/sdd of=~/my.raspi.backup.img
My SD card is of 16 Gb but there is slightly more than 2 Gb of data. When i tried the dd command to make an img file of my card it tried to make an img of 16 Gb !
If there any way i could force it to make img of only the relevant part ?

User avatar
HashberryPee
Posts: 66
Joined: Thu Apr 05, 2012 9:41 am
Location: Germany

Re: imaging the image for backup purposes?

Wed Aug 01, 2012 11:24 am

OMG! Please read! The answer is right here!
Look at my link posted a few messages before.

raspfly
Posts: 132
Joined: Sun May 27, 2012 1:42 am

Re: imaging the image for backup purposes?

Wed Aug 01, 2012 4:57 pm

HashberryPee wrote:OMG! Please read! The answer is right here!
Look at my link posted a few messages before.
But it said more EFFORT . . . so i tried going for dd :) (i am a lazy man)
I feel it would be a lil non-technical but it wud be easier if i reduce all the partition sizes to bare minimum and make the img file and then restore the partitions back :)

Return to “Raspbian”