diff options
Diffstat (limited to 'restore.in')
-rw-r--r-- | restore.in | 26 |
1 files changed, 23 insertions, 3 deletions
@@ -1,10 +1,30 @@ #! /bin/bash - -libdir=@LIBDIR@/backup +# This file is part of BEAM +# Copyright (C) 2012 Sergey Poznyakoff +# +# BEAM is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# BEAM is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with BEAM. If not, see <http://www.gnu.org/licenses/>. + +libdir=@LIBDIR@/beam set -e . $libdir/common.sh set +e +if [ "$1" = "--wtf" ]; then + wtf $(basename $0) create a backup + exit 0 +fi + load_config taroptions="$backup_tar_options $backup_rsh_command" @@ -137,7 +157,7 @@ do ${type}_restore $item done -trap '' EXIT INT QUIT TERM +trap - EXIT INT QUIT TERM runhook epilogue_hook logit "finished" |