From: Carl N Baldwin Date: Tue, 25 Oct 2005 22:49:43 +0000 (-0600) Subject: Wrong source dir to rsync X-Git-Tag: release-0.4~61^2 X-Git-Url: http://git.pippins.net/embedvideo/.git/%7Bupdate_month%7D?a=commitdiff_plain;h=f68576bb8ca6dc3fb5457925ae039e623b95bd45;p=backups%2F.git Wrong source dir to rsync --- 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