totime
将 totime 选项 和 todate 选项一起使用,指定终止日期和时间,您要在此日期和时间之前在复原、检索或查询操作中搜索备份或归档。 如果未指定 todate 选项,那么备份/归档客户机将忽略此选项。
使用带有 totime 和 totime 选项的 fromtime 和 fromdate 选项,请求一个在某段时间内备份文件的列表。 例如,可以请求一个在 2003 年 7 月 1 日早晨 6:00 与 2003 年 7 月 30 日晚 11:59 之间备份的文件列表。
使用带有 totime选项的下列命令:
- delete backup
- query archive
- query backup
- restore
- restore group
- retrieve
支持的客户机
此选项适用于所有客户机。 IBM® Storage Protect API 不支持此选项。
语法
参数
- time
- 指定一个结束时间。 如果没指定开始时间,那么时间缺省为 23:59:59。 按使用
timeformat 选项选定的格式输入该时间。
在命令中包含 timeformat 选项时,该选项必须放在 fromtime、pittime 与 totime 选项前。
示例
命令行:
dsmc restore "/Users/van/Documents/myfiles/*" -todate=09/17/2003 -totime=23:00:00


命令行:



dsmc restore "/home/user1/*" -todate=09/17/2003 -totime=23:00:00
命令行:
dsmc query backup -totime=23:59:00 -todate=06/30/2003 c:\mybackups\
