Skip to content

Commit

Permalink
fix the wrong date sequence for variable TSM_RESTORE_PIT_DATE
Browse files Browse the repository at this point in the history
close #318
  • Loading branch information
gdha committed Dec 18, 2013
1 parent 91e5b3b commit 5b5d124
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if test -z "${REPLY}"; then
LogPrint "Skipping Point-In-Time Restore, will restore most recent data."
else
# validate date
TSM_RESTORE_PIT_DATE=$( date -d "$REPLY" +%m.%d.%Y 2>&8 ) ||\
TSM_RESTORE_PIT_DATE=$( date -d "$REPLY" +%Y.%m.%d 2>&8 ) ||\
Error "Invalid date for recovery: '$REPLY'"
# correct date, add to dsmc options
TSM_DSMC_RESTORE_OPTIONS=( "${TSM_DSMC_RESTORE_OPTIONS[@]}" -pitd="$TSM_RESTORE_PIT_DATE" )
Expand Down

0 comments on commit 5b5d124

Please sign in to comment.