06-21-2011 09:43 AM
Does anyone know whether the bupduplicate -hoursago command refers to when backups began or finished, or both?
For example:
Which of the above backups, if any will be captured?
Solved! Go to Solution.
06-21-2011 10:29 AM
Everything looks at start time only - even the commands that let you specify start and endtime with -s/-d and -e are only looking at backups that _started_ between the two times. They don't really care when the backups finished.
BUT, you can't use -hoursago with a time - so your command example should have given you and error. In addition, I think there are other required fields - -dstunit jumps to mind.
Bill
06-21-2011 10:29 AM
Everything looks at start time only - even the commands that let you specify start and endtime with -s/-d and -e are only looking at backups that _started_ between the two times. They don't really care when the backups finished.
BUT, you can't use -hoursago with a time - so your command example should have given you and error. In addition, I think there are other required fields - -dstunit jumps to mind.
Bill
06-21-2011 10:33 AM
Image timestamp/Image ID is associated with backup start time.
06-21-2011 11:01 AM
sorry bills, that was a typo. The example command should have been had a 1" appended to it.
Anyways, thank you both; that helps. But one more question then.
What happens if a backup began within the window specified by the bpduplicate command, but hasn't finish? Will the duplication job wait in the queue until said backup is complete and then begin duplicating?
for example:
06-21-2011 11:41 AM
The backup job does not get entered into whatever table is referenced until it completes. Until then, NetBackup effectively does not know about the job (this is simplified; of course NetBackup knows about it, just not in any really useful way, for us), so the search for jobs to duplicate will come up empty. The duplicate will not wait for active jobs to finish.
Bill
06-21-2011 11:50 AM
the backup must begin and end within the window created or specified by the bpduplicate -hoursago command?
So, in my first post, neither of the backups would have been duplicated, correct?
06-21-2011 12:47 PM
The backup does not have to have ended in the window specified - but it has to be completed when you run the search. In your original example (assuming -hoursago 1), neither image would be duplicated - Backup A started more than an hour ago, and Backup B hasn't completed yet.
06-21-2011 05:36 PM
06-21-2011 10:26 PM
GREAT suggestion JiHoon!
Only problem is that bpend_notify script goes onto each individual client.
Another option could be parent_end or session_end notify scripts on the master server.