aboutsummaryrefslogtreecommitdiff
path: root/restore.in
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-05-29 13:02:40 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-05-29 13:02:40 +0300
commitd669127d2efaf9969b081fbaff47ff8938388750 (patch)
tree1bcfab0a932b717284e67f957deb8506229ac4be /restore.in
parent8ceb3484f218d25e025deb618ae3d202e2599dab (diff)
downloadbeam-d669127d2efaf9969b081fbaff47ff8938388750.tar.gz
beam-d669127d2efaf9969b081fbaff47ff8938388750.tar.bz2
Rename project to BEAM (Backup Easy And Manageable).
Diffstat (limited to 'restore.in')
-rw-r--r--restore.in26
1 files changed, 23 insertions, 3 deletions
diff --git a/restore.in b/restore.in
index 7466a4f..933a260 100644
--- a/restore.in
+++ b/restore.in
@@ -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"

Return to:

Send suggestions and report system problems to the System administrator.