Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change directive from command prompt

Status
Not open for further replies.

jruslan

Technical User
Aug 17, 2002
13
US
Hello,
can you advice how i can change directive from command line in unix. I have 2 directives for full and incremental backups and i want to change them with cron job, not manualy.
Thank you.
 
Changing directives with a cron job would imply that you want to change them on a regular basis. Why not just create more directives? You can create as many as you like.

What exactly are you trying to do?
 
Actually, you can use nsradmin to do this. Please read the man pages for detailled information.

However, i agree with serbtastic - this is most likely something that is not necessary and searches for a better solution. But we need more input.
 
Let me explain:
i have created one directive for full backup and another directive for incremental. i manualy change directive from one to another on friday and change back on monday.
I don't need change CONTENT of directive, i just need to specify another directive for client automaticaly.
 
I think you are making it too complicated.

Let me guess - you want to ship some files/directories for
the different backups. So why don't you just create
- 2 client resources (same name of course) where you
- have different schedules and save set settings for
each of them.
- Then assign them to a group (actually, you assign a
group to the client, not the opposite way ;-)
Could even be the same group.

What do you think about this solution ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top