Dr. Kuhlmann Software Dr. Kuhlmann Beratung Software-Engineering

HD on CDHelpGo to homeGo to table of contentsRestoring files manuallyJobs saving data periodical KaTeker  Restoring from scratch

Disclaimer

Restoring files from scratch requires some knowledge in Linux administration. You should read a least the man pages of tar or dar.

Use the instructions at your own risk. Under no circumstances may Dr. Heiner Kuhlmann be held liable for damage to hardware or software, lost data or other damage either direct or indirect caused by applying the instructions.

Restoring from scratch

If the system crashed it is necessary to restore the backup from scratch. There are two cases:

  1. The archives of the SAVE_ROOT are not corrupted

  2. The archives of the SAVE_ROOT are corrupted

The first case restoring from HD

when tar is used:

   su -
   cd /
   for archive in `find /SAVE_ROOT/original -type f -name "*.tgz" | sort` \
                  `find /SAVE_ROOT/actual   -type f -name "*.tgz" | sort`
   do
      tar xzf $file
   done

when dar is used:

   su -
   cd /
   for archive in `find /SAVE_ROOT/original -type f -name "*.tgz" | sort | sed 's,.1.dar,,'` \
                  `find /SAVE_ROOT/actual   -type f -name "*.tgz" | sort | sed 's,.1.dar,,'`
   do
      dar x $file
   done

This can take some minutes.

The second case restoring from CDs

is a little more work:

Restore all archives saved on the master CDs and then the latest update CD. When tar is used for each CD do

   su -
   cd /
   mount /media/cdrom
   files=`find /media/cdrom/ -type f -name "*.tgz" | grep -E -v "/media/cdrom/[A-Z]+::[A-Z]+"`
   for archive in $files ; do
      tar xzf $file
   done
   umount /media/cdrom

Restore all archives saved on the master CDs and then the latest update CD. When dar is used for each CD do

   su -
   cd /
   mount /media/cdrom
   files=`find /media/cdrom/ -type f -name "*.1.dar" | grep -E -v "/media/cdrom/[A-Z]+::[A-Z]+" | sed 's,.1.dar,,'`
   for archive in $files ; do
      dar x $file
   done
   umount /media/cdrom

The second case restoring from other media

is similar to restoring from CDs but the mount command will differ.

Restoring the HD archives

This is only simple if you saved SAVE_ROOT/log SAVE_ROOT/cache and /root/.kateker.conf . At first restore from CDs.

Restoring the HD archives in SAVE_ROOT is done by tkateker. Use dialog "CDs" select a CD in the list of CDs and hit the <Reconstruct from CD> button. You have to do this for each backup set on the CD. If there are other media types defined they offer the reconstruct function too.

© 2003-2004 Dr. Heiner Kuhlmann: www.dr-kuhlmann-software.de, kateker@dr-kuhlmann-software.de