#358 Issue closed: TSM Point-In-Time restore not working - needs to specify dateformat.

Labels: bug

clausa opened issue at 2014-01-21 10:31:

The date format used in /usr/share/rear/verify/TSM/default/39_request_point_in_time_restore_parameters.sh

TSM_RESTORE_PIT_DATE=$( date -d "$REPLY" +%Y.%m.%d 2>&8 )

should be explicitly defined as dateformat '5' according to: http://publib.boulder.ibm.com/infocenter/tsminfo/v6/index.jsp?topic=%2Fcom.ibm.itsm.client.doc%2Fr_opt_dateformat.html and
http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/index.jsp?topic=%2Fcom.ibm.itsmfdt.doc%2Fans50000268.htm

so "-date=5" should be added to TSM_DSMC_RESTORE_OPTIONS

That should also fix any local dateformat settings, as I suspect was the real issue in #318?

Tested with TSM Client Version 6, Release 2, Level 2.3 - but should work with any version according to the 2 documents mentioned above.

gdha commented at 2014-01-26 15:56:

@clausa could you verify if the fix as requested? If it is ok you may close the case. Thx for reporting it.

clausa commented at 2014-02-25 14:26:

@gdha We successfully tested it (although by configuring it in local.conf)

gdha commented at 2014-02-25 14:36:

@clausa what did you configure in local.conf file?

clausa commented at 2014-02-26 22:09:

@gdha Sorry for not being clear - we tested by adding:

TSM_DSMC_RESTORE_OPTIONS="-date=5"

to local.conf (that was before a13553d)

gdha commented at 2014-02-27 07:48:

@clausa was the fix done in 13553d not correct, or you didn't test the default setting?

clausa commented at 2014-03-03 09:50:

@gdha I have not tested 13553d - yet.

I have however tested the "-date=5" setting by manually applying the following to /etc/rear/local.conf:

TSM_DSMC_RESTORE_OPTIONS="-date=5"

That would give the same result as the fix in 13553d I guess?

gdha commented at 2014-03-03 10:15:

@clausa I hope so ;-)


[Export of Github issue for rear/rear.]