#!/usr/bin/perl -w # -- # scripts/restore.pl - the restore script # Copyright (C) 2001-2007 OTRS GmbH, http://otrs.org/ # -- # $Id: restore.pl,v 1.4 2007/03/12 00:08:30 martin Exp $ # -- # This program 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 2 of the License, or # (at your option) any later version. # # This program 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 this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -- # use ../ as lib location use File::Basename; use FindBin qw($RealBin); use lib dirname($RealBin); use lib dirname($RealBin)."/Kernel/cpan-lib"; use strict; use vars qw($VERSION); $VERSION = '$Revision: 1.4 $'; $VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/; use Getopt::Std; # get options my %Opts = (); my $DB = ''; my $DBDump = ''; getopt('hbd', \%Opts); if ($Opts{'h'}) { print "restore.pl - restore script\n"; print "Copyright (c) 2001-2007 OTRS GmbH, http://otrs.org/\n"; print "usage: restore.pl -b /data_backup/