Live backup with dd
|
9th Mar, 2013, 10:16 PM
Post: #1
|
|||
|
|||
Live backup with dd
Is it possible to backup the entire sd card _while_ xbian is running?
I know I can put the sd in a card reader and backup it with dd bs=1m if=/devsdx of=/home/effemmeffe/xbian.img but I was wondering if I can do the same with a command line from xbian login or a cron job and place the backup image on a usb disk connected to the raspberry. |
|||
9th Mar, 2013, 10:37 PM
Post: #2
|
|||
|
|||
RE: Live backup with dd
Yes, that's possible just the way you describe
pilight - modular domotica solution
|
|||
9th Mar, 2013, 10:43 PM
Post: #3
|
|||
|
|||
RE: Live backup with dd | |||
9th Mar, 2013, 10:47 PM
Post: #4
|
|||
|
|||
RE: Live backup with dd
To make an image just like the xbian image you download do:
Code: dd if=/dev/mmbclk0 of=/media/usb/backup.img pilight - modular domotica solution
|
|||
9th Mar, 2013, 11:02 PM
Post: #5
|
|||
|
|||
RE: Live backup with dd
Thanks.
I tried and I got a img file 3.91G big. My SD is 4G nominal, where are those missing bytes? |
|||
9th Mar, 2013, 11:07 PM
Post: #6
|
|||
|
|||
RE: Live backup with dd
It's correct as you don't have really 4GB.
You have to divide with 1024 and not 1000: 4000 / 1024 = 3,91. |
|||
10th Mar, 2013, 02:31 AM
Post: #7
|
|||
|
|||
RE: Live backup with dd
Darn, I'm a firmware developer, I should've known better!
(I thought that 4G was for normal people and the sd was actually 4194304 bytes...) Thanks. |
|||
10th Mar, 2013, 02:51 AM
Post: #8
|
|||
|
|||
RE: Live backup with dd
Hmm. (firmware) developers, we could use those Let us know if you're interested...
pilight - modular domotica solution
|
|||
10th Mar, 2013, 02:54 AM
Post: #9
|
|||
|
|||
Live backup with dd
(10th Mar, 2013 02:51 AM)CurlyMo Wrote: Hmm. (firmware) developers, we could use those Let us know if you're interested... Sound very intresting indeed Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
7th May, 2013, 08:07 PM
Post: #10
|
|||
|
|||
RE: Live backup with dd
(9th Mar, 2013 10:47 PM)CurlyMo Wrote: To make an image just like the xbian image you download do: Nice one! Running one as we speak.. Is it as easy as running this to automate it using cron as root?? Code: service xmbc stop |
|||
7th May, 2013, 08:11 PM
Post: #11
|
|||
|
|||
RE: Live backup with dd
I run the dd line in a script in my cron daily folder. It's run as root, I also copy the image on a remote share along with a tar of /etc/ and /home/
Never thought about stopping and restarting xbmc, is that needed? |
|||
7th May, 2013, 08:27 PM
Post: #12
|
|||
|
|||
RE: Live backup with dd
Don't know.. But when I just ran it, the system load went through the roof (as expected). so I just want to give the system some more resources
|
|||
29th May, 2013, 05:55 PM
Post: #13
|
|||
|
|||
RE: Live backup with dd
(9th Mar, 2013 10:47 PM)CurlyMo Wrote: To make an image just like the xbian image you download do: @CurlyMo, I found this thread: http://forum.xbian.org/thread-884.html in which the user mk01 says that there could be problems doing that. Or am I missing something? Is still my command line valid to backup or should I change something? |
|||
29th May, 2013, 07:06 PM
Post: #14
|
|||
|
|||
Re: Live backup with dd
mk01 is our developer so you need to talk to him
~~~~>>>Please always follow rules and read before you post<<<~~~~ |
|||
« Next Oldest | Next Newest »
|