I have some DBs which I backup with NetWorker every day. Once a week I need to clone the last backup to tape. I'm looking for a mminfo to create a saveset list file which I then want to give to nsrclone.
Is there a way how mminfo would only list the last backup of a group or a client. If I e.g. use "savetime>=1 day ago" hours it would probably show me some ssids which belong to the backup before the last one.
You would need to expand your script by checking with nsradmin first what is the start of the group or what was last start and end time and use that to build range via mminfo. Some more detailed approach would also include check if that backup was valid or not (eg. was it successful). With mminfo itself, there is no such thing as last backup parameter as that doesn't translate to any available parameter kept within mdb.
There is no single NetWorker command that would list you just the last time a back was done for a certain client:saveset. The closest example, filtering on group name, will report sorted in reverse chronological order:
You could create a output file, which can then be used massage the data, and clone. The following will create an output file using a semi colon as a delimiter:
I did find the following that uses a Perl script to determine the most recent level=Full backups. Take a look, and you can modify it to suit your needs. I did not test it, but at the very least, it looks promising:
ble1
6 Operator
•
14354 Posts
•
56186 Points
14298
0
Posted April 13th, 2017 00:00
You would need to expand your script by checking with nsradmin first what is the start of the group or what was last start and end time and use that to build range via mminfo. Some more detailed approach would also include check if that backup was valid or not (eg. was it successful). With mminfo itself, there is no such thing as last backup parameter as that doesn't translate to any available parameter kept within mdb.