]> arthur.barton.de Git - backup-script.git/blob - bin/backup-script-wrapper
61ef2434ead9561073dc775666e309e620722e8a
[backup-script.git] / bin / backup-script-wrapper
1 #!/bin/sh
2 #
3 # backup-script system for cloning systems using rsync
4 # Copyright (c)2008-2013 Alexander Barton, alex@barton.de
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 # Please read the file COPYING, README and AUTHORS for more information.
11 #
12
13 MAILTO="logcheck"
14
15 NAME="backup-script"
16 HOST=`hostname`
17 TMP="/tmp/$NAME.$$"
18
19 PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20 export PATH
21
22 `dirname "$0"`/backup-script $* >>$TMP 2>&1
23
24 cat $TMP | mail -s "$HOST: $NAME results" "$MAILTO"
25
26 rm -f $TMP
27
28 # -eof-