<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 10-07-12 09:34 PM, Insurance Squared Inc. wrote:
<blockquote cite="mid:4C3BC28D.3080803@insurancesquared.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
tar -czf $(date +%Y%m%d)webserver.tgz /backup2/webserver/<br>
mv $(date +%Y%m%d)webserver.tgz /backup3<br>
tar -czf $(date +%Y%m%d)glenn.tgz /backup2/desktop-glenn/<br>
mv $(date +%Y%m%d)glenn.tgz /backup3<br>
tar -czf $(date +%Y%m%d)barb.tgz /backup2/desktop-barb/<br>
mv $(date +%Y%m%d)barb.tgz /backup3<br>
<br>
<br>
That's run as root every night. The end result should be about 35 gigs
for deskstop-glenn, but it's ending up as about 2gigs, give or take.<br>
</blockquote>
<br>
Can you check the output of:<br>
$crontab -l<br>
<br>
as well as:<br>
$sudo crontab -l<br>
<br>
Also, shouldn't that script have a #!/bin/bash in it at the top?<br>
<br>
<blockquote cite="mid:4C3BC28D.3080803@insurancesquared.com" type="cite"><br>
I think tonite I'll comment out the mv command, see what I get.<br>
<br>
<br>
<br>
<br>
On 12/07/10 09:08 PM, Bill Traynor wrote:
<blockquote cite="mid:4C3BBC70.10008@naoi.ca" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
On 10-07-12 08:55 PM, Insurance Squared Inc. wrote:
<blockquote cite="mid:4C3BB96F.1000507@insurancesquared.com"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
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>
</blockquote>
<br>
Can you post your script? And is the script run as root or your user?<br>
<br>
<blockquote cite="mid:4C3BB96F.1000507@insurancesquared.com"
type="cite"><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.<br>
<br>
<br>
<br>
On 12/07/10 07:30 PM, Khalid Baheyeldin wrote:
<blockquote
cite="mid:AANLkTimBm2lzTX8poH3XCoPIfARtCtsLiLgKjZd37P3I@mail.gmail.com"
type="cite">On Mon, Jul 12, 2010 at 7:24 PM, Insurance Squared Inc. <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:gcooke@insurancesquared.com">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 class="im"><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 class="h5">g<br>
<br>
<br>
_______________________________________________<br>
<a moz-do-not-send="true" href="http://kwlug-disc_kwlug.org"
target="_blank">kwlug-disc_kwlug.org</a> mailing list<br>
<a moz-do-not-send="true" href="http://kwlug-disc_kwlug.org"
target="_blank">kwlug-disc_kwlug.org</a>@<a moz-do-not-send="true"
href="http://kwlug.org" target="_blank">kwlug.org</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true" href="http://2bits.com">2bits.com</a>,
Inc.<br>
<a moz-do-not-send="true" 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>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
kwlug-disc_kwlug.org mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:kwlug-disc_kwlug.org@kwlug.org">kwlug-disc_kwlug.org@kwlug.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Glenn Cooke
Insurance Squared Inc.
(866) 779-1499
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.insurancesquared.com">www.insurancesquared.com</a>
Insurance Agent Discussion Forum:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.americaninsurancebroker.com">www.americaninsurancebroker.com</a>
</pre>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
kwlug-disc_kwlug.org mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:kwlug-disc_kwlug.org@kwlug.org">kwlug-disc_kwlug.org@kwlug.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a>
</pre>
</blockquote>
<br>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
kwlug-disc_kwlug.org mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:kwlug-disc_kwlug.org@kwlug.org">kwlug-disc_kwlug.org@kwlug.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Glenn Cooke
Insurance Squared Inc.
(866) 779-1499
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.insurancesquared.com">www.insurancesquared.com</a>
Insurance Agent Discussion Forum:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.americaninsurancebroker.com">www.americaninsurancebroker.com</a>
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
kwlug-disc_kwlug.org mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kwlug-disc_kwlug.org@kwlug.org">kwlug-disc_kwlug.org@kwlug.org</a>
<a class="moz-txt-link-freetext" href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a>
</pre>
</blockquote>
<br>
</body>
</html>