The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron not running garric UNIX for Advanced & Expert Users 6 04-11-2008 09:32 AM
Cron not running .. please help beisaikong Shell Programming and Scripting 2 07-12-2007 08:05 AM
cron job is not running Suguna UNIX for Advanced & Expert Users 3 09-28-2006 10:11 AM
not running in cron ajnabi UNIX for Advanced & Expert Users 4 07-11-2003 03:35 PM
Cron Sends mail to root on completion of job. skotapal UNIX for Dummies Questions & Answers 1 04-25-2003 05:27 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-02-2009
novice633 novice633 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 1
cron job not running to completion

am running a cron job to do a backup of all user files. the script runs properly in the terminal but only backups about 20% of the files when run by cron.

the Linux system is running BASH as far as I can tell.

the symbols $FILE and $DIRECTORY are defined properly and the following is the active line which causes the backup to occur:

NAME=userName;
#
DIRECTORY=~/$NAME;
FILE=$DIRECTORY/`date '+%y%m%d%H%M%S'`_$NAME.tar;
#
tar -cvf $FILE $DIRECTORY/html;

what do I need to do to get cron to create a tarball of all the files?
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0