mirror of https://github.com/tLDP/LDP
40 lines
1.2 KiB
Bash
Executable File
40 lines
1.2 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
# A script to restore all of the data from an nfs mount. This is our final
|
|
# stage restore.
|
|
|
|
# Time-stamp: <2007-07-06 13:36:23 ccurley restore.all>
|
|
|
|
# Copyright 2000 through the last date of modification Charles Curley.
|
|
|
|
# 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., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
# 02110-1301, USA
|
|
|
|
# You can also contact the Free Software Foundation at http://www.fsf.org/
|
|
|
|
# For more information contact the author, Charles Curley, at
|
|
# http://www.charlescurley.com/.
|
|
|
|
export save="/mnt/save"
|
|
|
|
mount $save
|
|
|
|
cd /
|
|
gunzip -dc $save/tester.tar.gz | tar -xpkf -
|
|
|
|
rm /var/run/*.pid
|
|
|
|
lilo
|