This points to a limit on the user that runs cron, or the shell being different (e.g. bash vs. sh).<br><br><div class="gmail_quote">On Mon, Jul 12, 2010 at 8:55 PM, Insurance Squared Inc. <span dir="ltr"><<a href="mailto:gcooke@insurancesquared.com">gcooke@insurancesquared.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


  

<div text="#000000" bgcolor="#ffffff">
OK, now that's weird.  I just cut and pasted the commands from the
batch file to the command line and ran them directly.  Everything
worked.  I've got a 35gig file  on the destination drive, as expected
and hoped for.  Running it via the cron limits the file size to about
2gigs.<br>
<br>
What the heck difference does it make going via cron vs. manual?  A 2
gig limit there doesn't make any sense.  I must be missing something.<div><div></div><div class="h5"><br>
<br>
<br>
<br>
On 12/07/10 07:30 PM, Khalid Baheyeldin wrote:
<blockquote type="cite">On Mon, Jul 12, 2010 at 7:24 PM, Insurance Squared Inc. <span dir="ltr"><<a href="mailto:gcooke@insurancesquared.com" target="_blank">gcooke@insurancesquared.com</a>></span>
wrote:<br>
  <div class="gmail_quote">
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">That
command worked with no error.  (I didn't see the error message
generated by tar because it's happening late at night.)  </blockquote>
  <div><br>
Capture the output of tar to a file<br>
  <br>
tar .... > /logfile.txt 2>&1<br>
  <br>
This way you can see the error.<br>
 <br>
  </div>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">But
I'm doing it manually right now - and it's already at 15gigs.  So it's
clearly NOT tar that's the problem.  It must be truncating after the
tar happens.<br>
  </blockquote>
  <div><br>
Or it could be the user, or shell that does the backup that is limited.<br>
  <br>
Or cron runs under another user ID or shell?<br>
 <br>
  </div>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">So
that's narrowing it down to the mv command or the destination drive
(once the files are zipped, I move them to another physical drive.  </blockquote>
  <div><br>
It would be odd for a mv to just truncate.<br>
  <br>
Again, capture the output from that command and see if there are errors.<br>
 <br>
  </div>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">That
gives me archives by date).  I'm guessing that the filesystem type
(linux native) is going to be the ultimate problem here.  I'm not sure
why that drive is mounted as type linux native.  Something
auto-generated I expect.  We'll see soon if that's the problem. </blockquote>
  <div><br>
Yeah, that is an odd file system type to have.<br>
  <br>
We know it is ext2 or ext3, because the tune2fs command worked on it.<br>
 <br>
  </div>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">(sometimes
the solutions just require a second set of eyes prodding at it).</blockquote>
  <div><br>
Agreed.<br>
 <br>
  </div>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div><br>
    <br>
    <br>
    <br>
    <br>
    <br>
On 12/07/10 07:06 PM, Khalid Baheyeldin wrote:<br>
    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
dd if=/dev/zero of=/somedir/somefile bs=1048576 count=2049<br>
    </blockquote>
    </div>
    <div>
    <div>g<br>
    <br>
    <br>
_______________________________________________<br>
    <a href="http://kwlug-disc_kwlug.org" target="_blank">kwlug-disc_kwlug.org</a> mailing list<br>
    <a href="http://kwlug-disc_kwlug.org" target="_blank">kwlug-disc_kwlug.org</a>@<a href="http://kwlug.org" target="_blank">kwlug.org</a><br>
    <a href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Khalid M. Baheyeldin<br>
  <a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>
  <a href="http://2bits.com" target="_blank">http://2bits.com</a><br>
Drupal optimization, development, customization and consulting.<br>
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>
Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>
  <pre><fieldset></fieldset>
_______________________________________________
<a href="http://kwlug-disc_kwlug.org" target="_blank">kwlug-disc_kwlug.org</a> mailing list
<a href="mailto:kwlug-disc_kwlug.org@kwlug.org" target="_blank">kwlug-disc_kwlug.org@kwlug.org</a>
<a href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a>
  </pre>
</blockquote>
<br>
</div></div><pre cols="72"><font color="#888888">-- 
Glenn Cooke
Insurance Squared Inc.
(866) 779-1499
</font><div class="im"><a href="http://www.insurancesquared.com" target="_blank">www.insurancesquared.com</a>

Insurance Agent Discussion Forum:
<a href="http://www.americaninsurancebroker.com" target="_blank">www.americaninsurancebroker.com</a>

</div></pre>
</div>


<br>_______________________________________________<br>
<a href="http://kwlug-disc_kwlug.org" target="_blank">kwlug-disc_kwlug.org</a> mailing list<br>
<a href="http://kwlug-disc_kwlug.org" target="_blank">kwlug-disc_kwlug.org</a>@<a href="http://kwlug.org" target="_blank">kwlug.org</a><br>
<a href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com">2bits.com</a>, Inc.<br><a href="http://2bits.com">http://2bits.com</a><br>Drupal optimization, development, customization and consulting.<br>
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>