mirror of https://github.com/tLDP/LDP
We now set the path on the target to the zip drive with a
variable. This fixes a bug in the command to eject the zip disk.
This commit is contained in:
parent
0c9fa7a2ed
commit
29d5242659
|
@ -8,7 +8,7 @@
|
|||
# firewall. You don't want the firewall to be authenticated to the backup
|
||||
# system in case the firewall is cracked.
|
||||
|
||||
# Time-stamp: <2001-11-19 09:20:06 ccurley get.tester>
|
||||
# Time-stamp: <2002-07-01 06:22:58 ccurley get.tester>
|
||||
|
||||
# Copyright 2000 through the last date of modification Charles Curley.
|
||||
|
||||
|
@ -31,9 +31,14 @@
|
|||
# For more information contact the author, Charles Curley, at
|
||||
# http://w3.trib.com/~ccurley/.
|
||||
|
||||
# 2002 07 01: We now set the path on the target to the zip drive with
|
||||
# a variable. This fixes a bug in the command to eject the zip disk.
|
||||
|
||||
|
||||
# The host name of the computer to be backed up.
|
||||
|
||||
target=tester
|
||||
zip=/mnt/zip
|
||||
|
||||
echo Backing up $target
|
||||
|
||||
|
@ -43,14 +48,14 @@ rm -r $target.oldzip
|
|||
|
||||
mv $target.zip $target.oldzip
|
||||
|
||||
ssh $target "modprobe ppa ; mount -r /mnt/zip"
|
||||
ssh $target "modprobe ppa ; mount -r $zip"
|
||||
|
||||
echo Copying the ZIP disk.
|
||||
|
||||
# -r for recursive copy, -p to preserve times and permissions, -q for
|
||||
# -quiet: no progress meter.
|
||||
# quiet: no progress meter.
|
||||
|
||||
scp -qpr $target:/mnt/zip $target.zip
|
||||
scp -qpr $target:$zip $target.zip
|
||||
|
||||
echo Testing the results.
|
||||
find . -iname "*.gz" | xargs gunzip -t
|
||||
|
|
Loading…
Reference in New Issue