projects
/
backups
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9acb0d3
)
Wrong source dir to rsync
author
Carl N Baldwin
<cnb@hpsvcnb.fc.hp.com>
Tue, 25 Oct 2005 22:49:43 +0000
(16:49 -0600)
committer
Carl N Baldwin
<cnb@hpsvcnb.fc.hp.com>
Tue, 25 Oct 2005 22:49:43 +0000
(16:49 -0600)
scripts/restore-script.sh
patch
|
blob
|
history
diff --git
a/scripts/restore-script.sh
b/scripts/restore-script.sh
index 1bf8dccfd4e8326670ef9ef189598d24c6cecc33..42fe9000e60ccb06d15fecd529eb5ad336fdc29f 100755
(executable)
--- a/
scripts/restore-script.sh
+++ b/
scripts/restore-script.sh
@@
-19,6
+19,7
@@
for date in $(cat $dbfile | list-dates.sh); do
eject $device
echo >&2 "Please insert backup disk: $date"
read bogus
+ eject -t $device
# Mount the media
mount -t ext2 $device $mountdir
@@
-30,5
+31,5
@@
for date in $(cat $dbfile | list-dates.sh); do
done
rsyncopts="-l -p -t -g -o -0 --files-from=- --stats --progress "
- cat $dbfile | files-from-date.sh | rsync $rsyncopts $
1
$2
+ cat $dbfile | files-from-date.sh | rsync $rsyncopts $
mountdir
$2
done