cancel
Showing results for 
Search instead for 
Did you mean: 

How to run through a shell more then 10 NBU backups at the same time.

yasoto
Level 4

How to run through a shell more then 10 NBU backups at the same time.
knowing that bpbackup commands can be launched with in background 
if I am not mistaken?

thank you for your suggestions.
5 REPLIES 5

Nicolai
Moderator
Moderator
Partner    VIP   

If I have understood the question correct:

bpbackup does not run in the background. It spins off a entire new process. After starting 10 bpbackup command, you can exit the shell. The bpbackup command's will continue to run. If you use the -L option you can have each bpbackup command to log it output.

yasoto
Level 4

if ihave a
for i in a b c d e
do
i want to lauch bpbackup a + bpbackup b + bpbackup c + bpbackup d 
without wainting the end of each command
done

how can i do this ???

Nicolai
Moderator
Moderator
Partner    VIP   

You issue your'e normal bpbackup command WITHOUT the -w option.

So something like :

bpbackup -p CLIENT_INITIATED -s user_daily -L /tmp/proggress.log  /tmp

Would return immediately.


From man bpbackup:

 -w [hh:mm:ss]

                 Causes NetBackup to wait for a completion status from the server before returning you to the system prompt.

                 The date and the time format depend on the user's locale. See NOTES.

                 You can optionally specify a wait time in hours, minutes, and seconds. The maximum wait time you can specify is 23:59:59. If the
                 wait  time  expires before the backup is complete, the command exits with a timeout status. The backup, however, still completes
                 on the server.

                 The bpbackup -w option causes the shell to wait for a return code. The operating system shell can only return one  return  code.
                 Therefore,  if  you use -w without specifying a wait time or you specify a value of 0, NetBackup waits indefinitely for the com
                 pletion status.


Nicolai
Moderator
Moderator
Partner    VIP   
GATEWAY TIMEOUT - double post - deleted


yasoto
Level 4

Thank You VM.