Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-19-2009, 06:01 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
tar in cronjob does not work 100%

the following line doesnt work as a cronjob;
tar -C /var/www/dokuwiki -c -v -j -f /storage/dokuwiki/dokuwiki-backup-`/bin/date +%Y%m%d`.tar.bz2 conf data lib
The tar will be created but not all files/folders are in it.
what am i doing wrong?:

this is in my crontab -e;
# m h  dom mon dow   command
55 11 * * * /bin/bash /storage/dokuwiki/scripts/backup
Old 02-19-2009, 06:55 AM   #2
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
what are the files missing ?
Are the files which you are reporting as missing are under /var/www/dokuwiki ?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cronjob does not work niner710 Linux - Newbie 11 05-07-2008 04:45 AM
'lsof' doesn't work in cronjob BlackHatRob Linux - Software 2 03-07-2008 05:03 PM
stopping basic commands like mv, cp and tar from using 100% cpu darkleaf Linux - Software 9 06-22-2005 06:41 PM
Cronjob won`t work in /var nodger Linux - Software 3 11-02-2004 07:44 PM
cpmove-mysite.tar.gz.part10 100,020,000? lexington Linux - Newbie 3 05-10-2004 07:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration