If it's not on-topic, it's in here.
Post a reply

Re: Is this post OK

Thu Apr 11, 2013 5:18 pm

This is a video of an rescue ISO I made for folk using qt4-fsarchiver backup on LMDE 16 months ago and it still gets loads of downloads, last month over 130 but I also included the first saline-backup script which I demo on this video.

What I really liked about it was you could point at any Debian OS partition on your machine and create a backup file, maybe you could do the same to create a live CD/DVD?

Anthony had a mishap with it so removed it with his next version and when I ask about having it back it was another "It's never going to happen" but that was a very powerful and useful function and I've always missed it.

http://lin.me.uk/demos/saline/saline-backup-ori.tar.xz

Re: Is this post OK

Thu Apr 11, 2013 5:59 pm

Last one, this one clones to a partition which I use quite a lot http://lin.me.uk/demos/saline/saline-partition.tar.xz

Re: Is this post OK

Fri Apr 12, 2013 6:32 pm

Thanks. I haven't had a chance to look at these, but I will do it this weekend. I did write some code to detect the text editor, and I put it in the latest refracta2usb. (in the ibiblio testing folder)

If you don't want to try that, you can try this test script. Just give it a test file name for $boot_menu and run it in a terminal. The file should open in your text editor.
Code:
#!/usr/bin/env bash


# put the name of a test file between the quotes
boot_menu=""


# If your editor is not geany, gedit, kwrite, leafpad, medit,
# or mousepad, put the fill path to the editor here (between the quotes)
# and add a command-line option if needed.
other_editor=""
other_editor_option=



find_editor () {
   if  [[ -e /usr/bin/geany ]] ; then
      editor="/usr/bin/geany"
      editor_option="-i"   
   elif  [[ -e /usr/bin/gedit ]] ; then
      editor="/usr/bin/gedit"
   elif  [[ -e /usr/bin/kwrite ]] ; then
      editor="/usr/bin/kwrite"
   elif  [[ -e /usr/bin/leafpad ]] ; then
      editor="/usr/bin/leafpad"
      editor_option="--sync"
   elif  [[ -e /usr/bin/medit ]] ; then
      editor="/usr/bin/medit"
      editor_option="-n"
   elif  [[ -e /usr/bin/mousepad ]] ; then
      editor="/usr/bin/mousepad"   
   elif [[ -n "$other_editor" ]] ; then
      editor="$other_editor"
      editor_option="$other_editor_option"
   else
      echo " No suitable editor found.
You must set the other_editor variable in $0

Exiting..."
      if $(grep -q /dev/${DEVICE}1 /proc/mounts) ; then
         pumount /dev/${DEVICE}1
      fi
      exit 0
   fi
}



find_editor
"$editor" "${editor_option}" "$boot_menu"

echo "Done!"
exit 0

Re: Is this post OK

Sat Apr 13, 2013 3:37 pm

Code:
boot_menu="/home/user/Documents/text.txt"

Worked with gedit but with mousepad it opened mousepad but failed to load the file.
If I put "mousepad /home/user/Documents/text.txt" into the terminal it open the file.

Looking at what you've done with that routine set me thinking :D
At the end of taking a snapshot you could have a similar routine to check what burner is installed and a button "Burn ISO" that would burn the ISO that's been created.

Back to my dreamland.
Image

Re: Is this post OK

Sat Apr 13, 2013 7:51 pm

Get rid of the quotes around ${editor_option} so it looks like this. Tested with geany, leafpad and mousepad.
Code:
"$editor" ${editor_option} "$boot_menu"


I think there was a version of refractasnapshot that used wodim to burn the iso. Not sure if that ever got finished and uploaded. I'll have to look around and will revisit the idea.

Re: Is this post OK

Sun Apr 14, 2013 12:50 am

When i used wodim to burn iso's all i did was:
wodim *iso
(while the Web knows about much more difficult ways, i never had problems).

As i don't do it anymore it might be that it stopped working
(i now simply use xfburn as a quick and easy solution to burn).

Re: Is this post OK

Sun Apr 14, 2013 4:53 pm

wodim *.iso


Found it! It was way back in 9.0.1 (maybe didn't make it into a deb).
Code:
wodim dev="$burn_device" -v -eject driveropts=burnfree speed="$burn_speed" -data "$snapshot_dir"/"$filename" \
       | tee >(zenity --title="Burning CD..." --progress --pulsate)
(Plus some window dressing)

I don't think I ever tested it. Got a shortage of working burners here. I could put together some test code pretty easily.

Re: Is this post OK

Sun Apr 14, 2013 7:39 pm

off-topic i already read that syntax short ago, by you:
| tee >(zenity --title="Burning CD..." --progress --pulsate)
but couldn't figure out:
- why the pipe + the tee + the redirector is needed ( | tee > )
- and why the parantheses around the zenity command are needed.
I never did anything with zenity, so this ain't a big surprise. I alos am not that sure about | and tee and > (it kinda works, but i still don't fully understand it).
Some peopel seem to abuse (useless use of) | tee, but here it seems to be needed.
: confused.

Re: Is this post OK

Sun Apr 14, 2013 10:08 pm

Got a shortage of working burners here.

+1.. Everything here is built from scavenged junk, the burner is always first to die and last to get replaced (but only after the beer fund is sorted).. USB is faster anyway.

Re: Is this post OK

Mon Apr 15, 2013 11:12 am

Removing the quotes worked for me :D
I think there was a version of refractasnapshot that used wodim to burn the iso. Not sure if that ever got finished and uploaded. I'll have to look around and will revisit the idea.
Not such a daft idea then if you've been there already, my thinking was it saves the user going to the menu to select a burner and then having to navigate to the ISO file, more intuitive, more user friendly.

I guess to satisfy all parties you need another button to copy the ISO to USB. :lol:

If I go into gparted and prepare a partition complete with a label is there any need to have the screen afterwards that asks what you want the partition formatted to and then formats it removing the label I have previously created?

Very minor but you might want to change CD to CD/DVD in refractasnapshot-gui
line 350
# First window shows general information
$DIALOG --$QUESTION --title="$version" --${BUTTON0}="Next"${BUTTON0NUM} --${BUTTON1}="Setup"${BUTTON1NUM} \
--width 580 --text "Are you ready to create a live installable snapshot of your system? This utility will create a bootable image that you can burn to CD. The image will be stored in $snapshot_dir.
Post a reply