schuhb
ADSM.ORG Member
/* -----------------------------------------------------------------*/
/* Script Name: back_single */
/* Parameter: script <hours> <Nodename> */
/* Description: Displays nodes and their amount of files and MBs. */
/* -----------------------------------------------------------------*/
select Entity,Successful,Bytes/1024/1024 as "MBs",date(start_time)as "START Date",time(START_TIME) as "Time",Date(END_TIME) as "END DATE",time(end_time) as "Time",Examined,Affected,Failed from summary -
where activity in ('BACKUP','ARCHIVE') and cast((current_timestamp-start_time)hours as decimal(8,0)) < $1 and entity='$2' order by Entity
This showed me the backups of node ($2) in the last ($1) hours.
No it shows me ALL backups instead of the last $1 hours.
Any idea
Thx, Hannes
/* Script Name: back_single */
/* Parameter: script <hours> <Nodename> */
/* Description: Displays nodes and their amount of files and MBs. */
/* -----------------------------------------------------------------*/
select Entity,Successful,Bytes/1024/1024 as "MBs",date(start_time)as "START Date",time(START_TIME) as "Time",Date(END_TIME) as "END DATE",time(end_time) as "Time",Examined,Affected,Failed from summary -
where activity in ('BACKUP','ARCHIVE') and cast((current_timestamp-start_time)hours as decimal(8,0)) < $1 and entity='$2' order by Entity
This showed me the backups of node ($2) in the last ($1) hours.
No it shows me ALL backups instead of the last $1 hours.
Any idea
Thx, Hannes