added the makecd ninjahelper, and updated the Authors
authormicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Fri, 28 Oct 2005 18:19:41 +0000 (18:19 +0000)
committermicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Fri, 28 Oct 2005 18:19:41 +0000 (18:19 +0000)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@214 758a04ac-41e6-0310-8a23-8373a73cc35d

AUTHORS
ChangeLog
handlers/makecd.helper [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
index 5805e9014bcfbf5b6609ad692bfed4e715d3f3fd..8b83569e039f9d872ce88408bbd2389f0b7b5bb7 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,16 +1,15 @@
 BACKUPNINJA was written by the Riseup Collective: intellectual property is theft.
 
-Contributors: 
+Ninjas: 
 
-elijah@riseup.net  -- original code
-micah@riseup.net   -- debian package, vserver support
-stefani@riseup.net -- makecd handler
-                   -- pgsql handler
-intrigeri          -- dup handler
+elijah@riseup.net  -- original code, bug fixes, man pages
+micah@riseup.net   -- debian package, vserver support, bug fixes
+stefani@riseup.net -- makecd handler, pgsql handler, man pages
+intrigeri          -- dup handler, vserver support, bug fixes
 Charles Lepple     -- trac handler
+Petr Klíma        -- autotools support
 
 Patches: 
 
-petr.klima@madeta-group.cz
 cmccallum@thecsl.org
 Daniel.Bonniot@inria.fr
index afab88e4e0fb2c8909b181e4c9e7d57e0a2400b9..78c2a1ceb986d1b5d1307954ccaea32139e20359 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@ version 0.9.1 -- unreleased
                (thanks to Petr Klíma petr.klima@madeta-group.cz)
        fixed many bugs in rdiff helper
        rdiff handler does not require 'label' (for real this time?)
+       added makecd ninjahelper
+               (thanks to Stefani stefani@riseup.net)
 
 version 0.9 -- October 19 2005
        *** IMPORTANT CHANGE, UPGRADE AT ONCE ***
diff --git a/handlers/makecd.helper b/handlers/makecd.helper
new file mode 100644 (file)
index 0000000..822ffd1
--- /dev/null
@@ -0,0 +1,101 @@
+HELPERS="$HELPERS makecd:makecd_backup"
+wizardname="makecd action wizard"
+
+declare -a makecd_excludes
+
+makecd_wizard() {
+
+  inputBox "$wizardname" "specify a burner type cd or dvd:"
+  [ $? = 1 ] && return
+  burnertype="burnertype = $REPLY"
+
+  #checkBox "makecd action wizard" "check options" \
+  #  "isoonly" "only create iso image do not burn" yes
+  #status=$?
+  #[ $status = 1 ] && return;    
+  #isoonly="isoonly = $REPLY"
+
+  booleanBox "$wizardname" "Make iso image only? or burn"
+  if [ $? = 0 ]; then
+     isoonly="isoonly = yes"
+  else
+     isoonly="isoonly = no"
+  fi
+
+  # backupdir
+  inputBox "$wizardname" "Directory where to store the backups:"
+  [ $? = 1 ] && return
+  backupdir="backupdir = $REPLY"
+
+  inputBox "$wizardname" "what name to give to the image file?"
+  [ $? = 1 ] && return
+  imagefile="imagefile = $REPLY"
+
+  inputBox "$wizardname" "specify a burner device:"
+  [ $? = 1 ] && return
+  device="device = $REPLY"
+
+  # target - root of system to be included
+  inputBox "$wizardname" "root of filesystem for burn:"
+  [ $? = 1 ] && return
+  target="target = $REPLY"
+
+
+   # excludes
+
+  formBegin "$wizardname: excludes" 
+    for ((i=0; i < ${#makecd_excludes[@]} ; i++)); do
+       formItem exclude ${makecd_excludes[$i]}
+    done
+    formItem exclude 
+    formItem exclude 
+    formItem exclude 
+    formItem exclude 
+    formItem exclude 
+    formItem exclude 
+    formItem exclude 
+    formItem exclude 
+    formItem exclude 
+  formDisplay
+  [ $? = 1 ] && return;
+
+  unset makecd_excludes
+  makecd_excludes=($REPLY)
+
+  get_next_filename $configdirectory/20.makecd
+  cat >> $next_filename <<EOF
+
+# TYP is cd or dvd AS WELL AS the disk inside!!
+$burnertype
+
+# not yet supported
+system = no
+
+# iso or burn to cd/dvd?
+$isoonly
+
+# location for image file
+$backupdir
+
+# image filename
+$imagefile
+
+# cd/dvd burner device
+$device
+
+# dirs/files to include in the backup
+$target
+
+# directories/files to be excluded
+# exclude = /proc
+# exclude = /sys
+# exclude = /dev
+EOF
+
+  for ((j=0; j < ${#makecd_excludes[@]} ; j++)); do
+    echo "exclude = ${makecd_excludes[$j]}" >> $next_filename
+  done
+   
+   chmod 600 $next_filename
+}
+