<?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 help me take backup using cron in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-me-take-backup-using-cron/m-p/3976514#M27731</link>
    <description>I can create a backup as &lt;BR /&gt;#tar -cvf /var/"$(date +%F)"_tmp.tar /tmp&lt;BR /&gt;&lt;BR /&gt;but cant take backup when using cron&lt;BR /&gt;#crontab -e&lt;BR /&gt;05 21 * * * /bin/tar -cf /var/"$(date +%F)"_tmp.tar /tmp&lt;BR /&gt;&lt;BR /&gt;why ?&lt;BR /&gt;plz help&lt;BR /&gt;Regards</description>
    <pubDate>Fri, 06 Apr 2007 03:19:52 GMT</pubDate>
    <dc:creator>Maaz</dc:creator>
    <dc:date>2007-04-06T03:19:52Z</dc:date>
    <item>
      <title>help me take backup using cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-take-backup-using-cron/m-p/3976514#M27731</link>
      <description>I can create a backup as &lt;BR /&gt;#tar -cvf /var/"$(date +%F)"_tmp.tar /tmp&lt;BR /&gt;&lt;BR /&gt;but cant take backup when using cron&lt;BR /&gt;#crontab -e&lt;BR /&gt;05 21 * * * /bin/tar -cf /var/"$(date +%F)"_tmp.tar /tmp&lt;BR /&gt;&lt;BR /&gt;why ?&lt;BR /&gt;plz help&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 06 Apr 2007 03:19:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-take-backup-using-cron/m-p/3976514#M27731</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-04-06T03:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: help me take backup using cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-me-take-backup-using-cron/m-p/3976515#M27732</link>
      <description>Shalom Maaz,&lt;BR /&gt;&lt;BR /&gt;You are missing the basic idea of cron. No environment. No path, no nothing. The date command probably failed.&lt;BR /&gt;&lt;BR /&gt;There is a cron log in /var/logs&lt;BR /&gt;&lt;BR /&gt;Take this code adn put it int a shell script.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;05 21 * * * /usr/contrib/bin/mybackup &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;Script:&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# set PATH and such so it works.&lt;BR /&gt;&lt;BR /&gt;backkupfilename="/var/$(date +%F)_tmp.tar"&lt;BR /&gt;/bin/tar -cvf  $backupfilename /tmp&lt;BR /&gt;&lt;BR /&gt;Cron is not the command line. testing it on the command line is useless.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 06 Apr 2007 05:10:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-me-take-backup-using-cron/m-p/3976515#M27732</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-04-06T05:10:06Z</dc:date>
    </item>
  </channel>
</rss>

