source: MondoRescue/branches/stable/tools/backuplocal@ 3656

Last change on this file since 3656 was 1334, checked in by Bruno Cornec, 17 years ago
  • Add a test env (local for laptop + QEMU based)
  • creates qemu-env for reuse of code
  • Property svn:executable set to *
File size: 826 bytes
Line 
1#!/bin/bash
2#
3# $Id$
4#
5# Test mondo locally
6#
7
8(
9dname=`dirname $0`
10prem=`echo $dname |cut -c1`
11if [ _${prem} = _"/" ]; then
12 export TOOLHOME=$dname
13else
14 export TOOLHOME=${PWD}/$dname
15fi
16
17. $TOOLHOME/common-env
18. $TOOLHOME/distro-env
19
20h=test-mondo
21#
22# For the laptop
23#
24d=/home/bruno/demo-mondo
25
26cat > $TMPDIR/test-mondo << EOF
27#!/bin/bash
28
29export LANG=C
30export LANGUAGE=C
31export LC_ALL=C
32mkdir -p $d
33mkdir -p $d/tmp-$h $d/scratch-$h $d/images
34/usr/sbin/mondoarchive -g -O -i -G -F -N -O -E "/usr/share/doc /usr/share/games /usr/share/fonts /usr/share/icons /usr/share/locale /usr/share/texmf /usr/src /home /users /var/log" -d images -s 4300m -T $d/tmp-$h -S $d/scratch-$h -p $h-$m
35EOF
36chmod 755 $TMPDIR/test-mondo
37export PATH=/sbin:/usr/sbin:$PATH ; sudo $TMPDIR/test-mondo
38
39) 2>&1 | tee /tmp/backuplocal.log
40
Note: See TracBrowser for help on using the repository browser.