<?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: SAM deleted crontab, possible recovery? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384070#M198136</link>
    <description>Hi RAC&lt;BR /&gt;&lt;BR /&gt;there is no need to use /dev/rmt/0mn by tar  insted of /dev/rmt/0m :)&lt;BR /&gt;&lt;BR /&gt;Important is to use "mn" by mt command.</description>
    <pubDate>Wed, 22 Sep 2004 06:18:08 GMT</pubDate>
    <dc:creator>Slawomir Gora</dc:creator>
    <dc:date>2004-09-22T06:18:08Z</dc:date>
    <item>
      <title>SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384066#M198132</link>
      <description>When adding an automated backup SAM reported "error on previous line; unexpected character found in line." when adding the crontab entry and ended up with an empty crontab file.&lt;BR /&gt;&lt;BR /&gt;Looking at the SAM log and /usr/sam/lbin/cron_change I don't see if the crontab was backed up before doing these changes.  Is there any possibility of restoring the crontab file?&lt;BR /&gt;&lt;BR /&gt;I also have a very recent make_tape_recovery backup so if its possible to get the crontab file from there it would be great.&lt;BR /&gt;&lt;BR /&gt;Quick responses will be greatly appreciated. ty</description>
      <pubDate>Wed, 22 Sep 2004 05:57:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384066#M198132</guid>
      <dc:creator>Janko Meskovski</dc:creator>
      <dc:date>2004-09-22T05:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384067#M198133</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use tape from make_tape_recovery&lt;BR /&gt;&lt;BR /&gt;mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;tar xvf /dev/rmt/0m var/spool/cron/crontabs&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Sep 2004 06:01:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384067#M198133</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-09-22T06:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384068#M198134</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Check /var/cron/backup&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 22 Sep 2004 06:01:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384068#M198134</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-09-22T06:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384069#M198135</link>
      <description>Slight correction in ealier post.&lt;BR /&gt;&lt;BR /&gt;mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;tar xvf /dev/rmt/0mn var/spool/cron/crontabs&lt;BR /&gt;&lt;BR /&gt;You will  have to user no rewind device on tar command.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Wed, 22 Sep 2004 06:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384069#M198135</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-09-22T06:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384070#M198136</link>
      <description>Hi RAC&lt;BR /&gt;&lt;BR /&gt;there is no need to use /dev/rmt/0mn by tar  insted of /dev/rmt/0m :)&lt;BR /&gt;&lt;BR /&gt;Important is to use "mn" by mt command.</description>
      <pubDate>Wed, 22 Sep 2004 06:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384070#M198136</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-09-22T06:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384071#M198137</link>
      <description>Slawomir - unfortunately /var/spool/cron/crontabs seems not to have been backed up with make_tape_recovery.  Should it have been in the archive by default?&lt;BR /&gt;&lt;BR /&gt;Robert-Jan - there is no /var/cron/ or /var/adm/cron/backup.&lt;BR /&gt;&lt;BR /&gt;Is it possible that SAM (or rather cron_change) executes "crontab -r" without backuping the crontab file?!? :(&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Sep 2004 06:57:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384071#M198137</guid>
      <dc:creator>Janko Meskovski</dc:creator>
      <dc:date>2004-09-22T06:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384072#M198138</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;on my tape there is var/spool/cron&lt;BR /&gt;&lt;BR /&gt;look at directory:&lt;BR /&gt;/var/opt/ignite/recovery&lt;BR /&gt;and check file&lt;BR /&gt;grep "/var/spool/cron" arch.include&lt;BR /&gt;&lt;BR /&gt;try to check tape by:&lt;BR /&gt;&lt;BR /&gt;mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;tar tvf /dev/rmt/0mn | grep "var/spool/cron"&lt;BR /&gt;&lt;BR /&gt;don't use /var/spool/cron but var/spool/cron &lt;BR /&gt;&lt;BR /&gt;Ps,&lt;BR /&gt;&lt;BR /&gt;I have cloned a lot of servers by make_recovery &lt;BR /&gt;and there was no problem with corntab.&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Sep 2004 07:27:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384072#M198138</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-09-22T07:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384073#M198139</link>
      <description>Thank you for your answers.  Unfortunately I wasn't able to restore the crontab from backup so I ended reconstructing it from the cron logs.&lt;BR /&gt;&lt;BR /&gt;Slawomir - ty, I will check why make_tape_recovery didn't backup the crontab file.</description>
      <pubDate>Thu, 23 Sep 2004 01:37:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384073#M198139</guid>
      <dc:creator>Janko Meskovski</dc:creator>
      <dc:date>2004-09-23T01:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384074#M198140</link>
      <description>Ignite (on my systems at least) by default backs up only part of vg00 - /var and /opt are excluded. This might explain why cron wasn't on your backup. I always explicitly include the missing filesystems.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Thu, 23 Sep 2004 01:49:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384074#M198140</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2004-09-23T01:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384075#M198141</link>
      <description>Look in the forums for stuff you want to have a copy of.&lt;BR /&gt;&lt;BR /&gt;I have a paper copy of the main crontabs on my boxes.&lt;BR /&gt;crontab -l &lt;BR /&gt;vgdisplay -v&lt;BR /&gt;bdf&lt;BR /&gt;cat /etc/fstab&lt;BR /&gt;cat /etc/hosts&lt;BR /&gt;netstat -in&lt;BR /&gt;netstat -i&lt;BR /&gt;ioscan -fun&lt;BR /&gt;lvlnboot -v&lt;BR /&gt;....and many more.&lt;BR /&gt;This can be very VERY useful on a maintenance day.  &lt;BR /&gt;&lt;BR /&gt;steve &lt;BR /&gt;steve&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Sep 2004 07:50:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384075#M198141</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2004-09-23T07:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAM deleted crontab, possible recovery?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384076#M198142</link>
      <description>THis doesn't help you now - but will in the future...&lt;BR /&gt;&lt;BR /&gt;Install cfg2html&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://come.to/cfg2html" target="_blank"&gt;http://come.to/cfg2html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It documents your server, inculding root's crontab.&lt;BR /&gt;&lt;BR /&gt;Run it from cron:&lt;BR /&gt;&lt;BR /&gt;# Run the cfg2html scripts,&lt;BR /&gt;35 6 1 * * cd /opt/cfg2html ; /opt/cfg2html/cfg2html_hpux.sh &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Then copy the html file to a central location...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Sep 2004 08:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-deleted-crontab-possible-recovery/m-p/3384076#M198142</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-09-23T08:53:45Z</dc:date>
    </item>
  </channel>
</rss>

