<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Veritas Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607716#M618894</link>
    <description>policy info is stored in /usr/openv/netbackup/db/class&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 19 Aug 2005 15:46:11 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2005-08-19T15:46:11Z</dc:date>
    <item>
      <title>Veritas Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607712#M618890</link>
      <description>Hi Experts,&lt;BR /&gt;&lt;BR /&gt;I use veritas netbackup to backup my filesystems. I want to copy 10-15 policies in a new name with a change in storage unit ( Say STU_1) and I want to change the backup selections for that newly created policies. &lt;BR /&gt;My backup selections in the original policies starts with /snap&lt;XYZ&gt;. I want to remove the string snap from the backup selection and modify that to /xyz.&lt;BR /&gt;&lt;BR /&gt;I want to copy all the policies where backup selection starts with /snap and copy to a new policy removing "snap" and also with a change in storage unit as mentioned above..&lt;BR /&gt;&lt;BR /&gt;Can we have a script to do this operation. This will save my 3-4 hours job if successful. Points to all inputs.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam&lt;/XYZ&gt;</description>
      <pubDate>Fri, 19 Aug 2005 12:07:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607712#M618890</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-08-19T12:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Veritas Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607713#M618891</link>
      <description>Hi,&lt;BR /&gt;It had perhaps been easier if you had attached an example.&lt;BR /&gt;&lt;BR /&gt;Is a "policy" a file ? to copy files, containing a specific string you can use "grep -l".&lt;BR /&gt;&lt;BR /&gt;for file in $(grep -l /snap *)&lt;BR /&gt;do&lt;BR /&gt;cp $file &lt;DEST&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;then you can use sed on the files for editing&lt;BR /&gt;&lt;BR /&gt;for file in *&lt;BR /&gt;do&lt;BR /&gt;sed '/s/snap//' &amp;gt;${file}1&lt;BR /&gt;done&lt;/DEST&gt;</description>
      <pubDate>Fri, 19 Aug 2005 12:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607713#M618891</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2005-08-19T12:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Veritas Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607714#M618892</link>
      <description>Sorry, &lt;BR /&gt;&lt;BR /&gt;It should be:&lt;BR /&gt;&lt;BR /&gt;sed '/s/snap//' $file &amp;gt;${file}1&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Aug 2005 12:45:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607714#M618892</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2005-08-19T12:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Veritas Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607715#M618893</link>
      <description>Hi leif,&lt;BR /&gt;&lt;BR /&gt;Thanks for your replies. I am sorry but I dont know which is the file where the policy name, attributes, backup selections and schedules are stored. I myself consider veritas as an elephat as it is very complicated in the command line level.&lt;BR /&gt;&lt;BR /&gt;I am still in search for the answers of above questions. If any one can point out / give clues ..will be a great help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Fri, 19 Aug 2005 13:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607715#M618893</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-08-19T13:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Veritas Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607716#M618894</link>
      <description>policy info is stored in /usr/openv/netbackup/db/class&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Aug 2005 15:46:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607716#M618894</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-08-19T15:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Veritas Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607717#M618895</link>
      <description>Syam,&lt;BR /&gt;&lt;BR /&gt;There are many ways to do this if you could at least provide a sample input then that would help.&lt;BR /&gt;&lt;BR /&gt;thx</description>
      <pubDate>Fri, 19 Aug 2005 17:20:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607717#M618895</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-19T17:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Veritas Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607718#M618896</link>
      <description>As rick pointed out the policy data is inside the /usr/openv/netbackup/db/class folder with individual policy name. for eg. Policy anc will have a folder called abc under /usr/openv/netbackup/db/class.&lt;BR /&gt;&lt;BR /&gt;Each policy is having individual folders under /usr/openv/netbackup/db/class.&lt;BR /&gt;&lt;BR /&gt;As mentioned above I have a policy called Bkp_Server1_Snap_d00.&lt;BR /&gt;&lt;BR /&gt;the directory structure is as follows.&lt;BR /&gt;&lt;BR /&gt;astersvr:root-/tmp/Bkp_Server1_Snap_d00&amp;gt;ls -lR&lt;BR /&gt;total 6&lt;BR /&gt;-rw-------   1 root       sys            106 Aug 20 07:28 clients&lt;BR /&gt;-rw-------   1 root       sys              9 Jul  3 02:36 includes&lt;BR /&gt;-rw-------   1 root       sys            777 Aug 20 07:30 info&lt;BR /&gt;drw-r-xr-x   3 root       sys             96 Jul 10 13:22 schedule&lt;BR /&gt;&lt;BR /&gt;./schedule:&lt;BR /&gt;total 0&lt;BR /&gt;drw-r-xr-x   2 root       sys             96 Jul 10 13:22 Manual&lt;BR /&gt;&lt;BR /&gt;./schedule/Manual:&lt;BR /&gt;total 4&lt;BR /&gt;-rw-------   1 root       sys             42 Jul 10 13:22 days&lt;BR /&gt;-rw-------   1 root       sys            339 Jul 10 13:22 info&lt;BR /&gt;mastersvr:root-/tmp/Bkp_Server1_Snap_d00&amp;gt;&lt;BR /&gt;mastersvr:root-/tmp/Bkp_Server1_Snap_d00&amp;gt;&lt;BR /&gt;mastersvr:root-/tmp/Bkp_Server1_Snap_d00&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I want few changes in the newly created policies.&lt;BR /&gt;&lt;BR /&gt;Copy the policy to a new name removing the string "Snap_" as shown above.&lt;BR /&gt;&lt;BR /&gt;2. Change the stu name from test1_stu to test2_stu&lt;BR /&gt;&lt;BR /&gt;3. Change the backup selection by just removing the string "snap".&lt;BR /&gt;&lt;BR /&gt;How can I achieve all these in a script.&lt;BR /&gt;&lt;BR /&gt;Attached the policy folder in a winzip format. You can get all the required inputs from that.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Fri, 19 Aug 2005 21:18:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/veritas-script/m-p/3607718#M618896</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-08-19T21:18:40Z</dc:date>
    </item>
  </channel>
</rss>

