From f68576bb8ca6dc3fb5457925ae039e623b95bd45 Mon Sep 17 00:00:00 2001 From: Carl N Baldwin Date: Tue, 25 Oct 2005 16:49:43 -0600 Subject: [PATCH] Wrong source dir to rsync --- scripts/restore-script.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/restore-script.sh b/scripts/restore-script.sh index 1bf8dcc..42fe900 100755 --- 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 -- 2.34.1