Greetings everyone...
Seems I already follow the good instruction given
by the thread from the previous thread located at our
ubuntu forum. But unfortunately my crontab seems doesnt execute
my SH.
My purpose was setting it to be executed at the night time
day changed.
Please take a look,
and revise it,,,
FileName: backupScript.sh
so at the crontab I did;#!/bin/sh
tarikh=""$(date +%F_%R);
nama="crm_";
fileHasil=""$nama$tarikh.tar.bz;
targetLoc="/usr/share/myPlace/backup/";
targetWeb="/var/www/myWeb/";
echo "Processing Backup for $tarikh";
echo "Backing up in progress...";
tar cvjf $targetLoc$fileHasil $targetWeb;
echo "Backed up Success! Saved on $targetLoc$fileHasil";
and I entered this:Code:$> crontab -e
Done!Code:0 0 * * * /usr/share/myPlace/backupScript.sh
I check it via command
Everything seems okay.Code:$> crontab -l
But, why there's no the end result for this?
The more strange is,
If i do executing the SH file manually without CRON,
it is okay, no problem. But once I used it with CRON, no-one execute it.
My Reference:
Bookmarks