[xubuntu-users] what do you suggest...

Ralf Mardorf ralf.mardorf at rocketmail.com
Mon May 26 20:48:34 UTC 2014


On Mon, 2014-05-26 at 15:35 -0400, Gary Charvat wrote:
> Dear Sir or Madam,
> 
> I am in the maarket for an application that will backup my entire system 
> to Live CD/DVD's (single or multiple) that are bootable to restore my 
> system in case of a system crash.
> 
> I've found "remastersys" which is ideal -- BUT -- the author/developer 
> is ceasing his efforts in the near future.
> 
> I am wondering if there is an alternative that you could recommend???

Why not making a backup and restore from a backup? You could use what
ever live CD or another install on your HDD to do this.

I for example make backups to an USB HDD using scripts like the one
below:

$ cat ./bak_arch_halt 
#!/bin/bash
# bash bak_saucy_halt

BACKUP_DIR_Q="/media/u1.unix/2014-May"
BACKUP_DIR_A="/media/data2/2014-May"
LOG=$BACKUP_DIR_Q/bak_saucy_halt.log

function stopwatch_start
{
  STARTED=$(date +%s)
  if [ "$A_STARTED" = "" ] ; then
    A_STARTED=$STARTED
    echo
    echo "Turn off the monitor :)!"
    echo
    echo -n "$BACKUP backup started at "
    date -d @$STARTED
    echo                                 >> $LOG
    echo -n "$BACKUP backup started at " >> $LOG
    date -d @$STARTED                    >> $LOG
  else
    echo
    echo "Turn off the monitor :)!"
    echo
    echo "$BACKUP backup starting now."
    echo "$BACKUP backup starting now."  >> $LOG
  fi
}

function stopwatch_stop
{
  DONE=$(date +%s)
  ((MIN=(DONE-STARTED)/60)) ; ((SEC=(DONE-STARTED)%60))
  for ((i=1; i<=$SPACE; i++)) ; do echo -n " " >> $LOG
    done
  echo -n "           done at "                >> $LOG
  date -d @$DONE                               >> $LOG
  printf "attended time: %3d:%02d\n" $MIN $SEC >> $LOG
  echo                                         >> $LOG
}

cpufreq-set -g ondemand
mkdir -p $BACKUP_DIR_Q #; mkdir -p $BACKUP_DIR_A
clear
echo "Mount /media/u1.unix    Backup partition"
#echo "      /media/data2      Backup partition"
#echo "      /media/debi386    Debian "
echo "      /media/archlinux  Arch Linux"
#echo "      /media/saucy      Kubuntu Saucy"
echo "and press enter to continue."
echo
echo "SHUTDOWN IS DISABLED"
read any_pushed_key

BACKUP_NAME_ADD=$(date "+%Y%m%d_%H%M%S")
A_STARTED=""

#BACKUP="MBRs"
#SPACE=${#BACKUP}
#stopwatch_start
#cd $BACKUP_DIR_A
#dd if=/dev/sda of=MBR_SDA-$BACKUP_NAME_ADD bs=512 count=1
#dd if=/dev/sdb of=MBR_SDB-$BACKUP_NAME_ADD bs=512 count=1
#dd if=/dev/sdc of=MBR_SDC-$BACKUP_NAME_ADD bs=512 count=1
#cd $BACKUP_DIR_Q
#dd if=/dev/sda of=MBR_SDA-$BACKUP_NAME_ADD bs=512 count=1
#dd if=/dev/sdb of=MBR_SDB-$BACKUP_NAME_ADD bs=512 count=1
#dd if=/dev/sdc of=MBR_SDC-$BACKUP_NAME_ADD bs=512 count=1
#stopwatch_stop

#BACKUP="Debian"
#SPACE=${#BACKUP}
#cd /media/debi386
#stopwatch_start
#tar -czf $BACKUP_DIR_Q/debi386_$BACKUP_NAME_ADD.bak.tar.gz * .config
#echo "tar exit status: $?" >> $LOG
#stopwatch_stop

BACKUP="Arch Linux"
SPACE=${#BACKUP}
cd /media/archlinux
stopwatch_start
tar -czf $BACKUP_DIR_Q/archlinux_$BACKUP_NAME_ADD.bak.tar.gz * .chuser
echo "tar exit status: $?" >> $LOG
stopwatch_stop

#BACKUP="Kubuntu Saucy"
#SPACE=${#BACKUP}
#cd /media/saucy
#stopwatch_start
#tar czf $BACKUP_DIR_Q/kubuntu_saucy_$BACKUP_NAME_ADD.bak.tar.gz *
#echo "tar exit status: $?" >> $LOG
#stopwatch_stop

((MIN=(DONE-A_STARTED)/60)) ; ((SEC=(DONE-A_STARTED)%60))
echo                                                         >> $LOG
echo -n "First backup started at "                           >> $LOG
date -d @$A_STARTED                                          >> $LOG
echo -n        "Last  backup    done at "                    >> $LOG
date -d @$DONE                                               >> $LOG
printf "attended time for all backups: %3d:%02d\n" $MIN $SEC >> $LOG
echo                                                         >> $LOG

#echo "Power off in 28 Minutes. Run shutdown -c to cancel the shutdown."
#shutdown -hP 28

exit 0






More information about the xubuntu-users mailing list