Jump to content


Photo

Restore Image backups with MQB / sofa flashing ;-)

Vu MQB BackupSuite

  • Please log in to reply
30 replies to this topic

Re: Restore Image backups with MQB / sofa flashing ;-) #21 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 11 May 2013 - 09:41

As i already wrote if you remount read only a reboot -f -n does the job nicely.

 

You can't really switch the root filesystem while you are fully running on it, but with single used mode and a read only mount the IO stops (and a ready only mount triggers also a sync), so you can write the flashfiles it while still running. But then you have to reboot instantly and without any filesystem flush to prevent corruption, but this is feasable. But is would not spend too much time on the scripts as I wrote above a single static binary would be better, believe me.

 

PS: For me it is not a few hours work, because i did all the work for my nfwrite binary already, it is ess the 1h to add the image and box detection


Edited by gutemine, 11 May 2013 - 09:44.


Re: Restore Image backups with MQB / sofa flashing ;-) #22 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 11 May 2013 - 17:28

Done :D



Re: Restore Image backups with MQB / sofa flashing ;-) #23 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 11 May 2013 - 18:58

that was a very long hour though ;)

Re: Restore Image backups with MQB / sofa flashing ;-) #24 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 11 May 2013 - 19:09

Do your just want just the binary or also a Plugin ?

 

And I don't have such boxes, so it needs some testing from users of such boxes too ...


Edited by gutemine, 11 May 2013 - 19:13.


Re: Restore Image backups with MQB / sofa flashing ;-) #25 rtzhjgg0

  • Senior Member
  • 568 posts

+13
Neutral

Posted 11 May 2013 - 19:11

Both... B)


Selfsat H50M4
Ultimo4K /2xTwinS2, VTI, PLi, ATV...
NAS: Qnap221

Re: Restore Image backups with MQB / sofa flashing ;-) #26 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 11 May 2013 - 19:41

http://openpli.org/f...ndpost&p=349705

 

You are welcome ...



Re: Restore Image backups with MQB / sofa flashing ;-) #27 rtzhjgg0

  • Senior Member
  • 568 posts

+13
Neutral

Posted 13 May 2013 - 10:33

Now I integrated gutemine's Flash Gordon (over fgwrite) on MQB:

 







		<content>
			<name>restore Vu Image PLIfull -as script</name>
			<module>Screens.Console</module>
			<screen><![CDATA[Console, "restore Vu Image PLIfull", ["/usr/lib/enigma2/python/Plugins/Extensions/FG/bin/fgwrite /media/hdd/backup/IMAGENAME/vuplus/solo2"]]]></screen>
		</content>

 

 

Example.

After important changes/updates I have to backup the flash image. I use Pedro_Newbie's 'BackupSuite' (Full back-up on HDD/USB) which creates 'vuplus' backups in /media/hdd/fullbackup_solo2/DATE_TIME. Then, using 'DreamExplorer' I copy (overwriting) the content of 'vuplus' from /media/hdd/fullbackup_solo2/DATE_TIME/ to /media/hdd/backup/IMAGENAME/.

All this operations can be made over GUI.

 

So I can "switch" my backup images (PLi, VTi, ViX and BH) over MQB :) 


Selfsat H50M4
Ultimo4K /2xTwinS2, VTI, PLi, ATV...
NAS: Qnap221

Re: Restore Image backups with MQB / sofa flashing ;-) #28 rtzhjgg0

  • Senior Member
  • 568 posts

+13
Neutral

Posted 20 May 2013 - 09:53

There is a second script by scope34 (_backup.sh) which can create image backups on Vu boxes. I adapted it to my needs. The original creates every time a new dated folder. I changed it to overwrite existing backup in /media/hdd/backup/

 

Concretely I use now 4 of this scripts - one for each image/folder (PLIfull, VTIfull, VIXfull and BHfull).

 

The difference between Pedro_Newbie's 'BackupSuite' and and this one is the same: BackupSuite creates every time a new dated folder in 'fullbackup_solo2', this one overwrites existing backup in /media/hdd/backup/.

 

...for experimental use, no warranty :)

Attached Files


Selfsat H50M4
Ultimo4K /2xTwinS2, VTI, PLi, ATV...
NAS: Qnap221

Re: Restore Image backups with MQB / sofa flashing ;-) #29 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 20 May 2013 - 11:32

Je zou kunnen overwegen om het script wat in te korten, je zou de regels 70 t/m 124 kunnen vervangen door

DIRECTORY=/media/hdd/backup
MTDBOOT=2
MTDROOT=0
MTDKERNEL=1
ROOTFSNAME="root_cfe_auto.jffs2"
BOXTYPE=vuplus
OPTIONS="--eraseblock=0x20000 -n -l"
UBINIZEARGS="-m 2048 -p 128KiB"
MKUBIFSARGS="-m 2048 -e 126976 -c 4096 -F"
STB=$( cat /proc/stb/info/vumodel )
DEFAULTDIRECTORYSHORT=$BOXTYPE/$STB
 
if [ $STB = "solo2" ] || [ $STB = "duo2" ] ; then
    ROOTFSNAME="root_cfe_auto.bin"
    MTDKERNEL=2
    MKUBIFSARGS="-m 2048 -e 126976 -c 4096"
fi

 

Dan blijft er dus over de regels 70 - 86

 

 

Attached Files



Re: Restore Image backups with MQB / sofa flashing ;-) #30 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 20 May 2013 - 11:42

Sorry I answered in Dutch, forgot it was the English section.

In short: You can shorten the script by replacing the lines 70-124 by the shown code above leaving the lines 70-86



Re: Restore Image backups with MQB / sofa flashing ;-) #31 rtzhjgg0

  • Senior Member
  • 568 posts

+13
Neutral

Posted 20 May 2013 - 11:48

Thanks for shorting it  B)

 

 

--------------------------------------------------

 

 

Here are the lines to add it to MQB:





		<content>
			<name>Backup (replacing) PLIfull -as script</name>
			<sel>1</sel>
			<module>Screens.Console</module>
			<screen><![CDATA[Console, "restore Vu Image PLIfull", ["/media/hdd/jscripts/_backup_replacing_PLIfull.sh"]]]></screen>
		</content>

 

 


Selfsat H50M4
Ultimo4K /2xTwinS2, VTI, PLi, ATV...
NAS: Qnap221



Also tagged with one or more of these keywords: Vu MQB, BackupSuite

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users