The UNIX and Linux Forums  

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #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?