View Single Post
Old 17th April 2011, 12:08
go0ogl3 go0ogl3 is offline
Join Date: Jul 2008
Posts: 73
Thanks: 5
Thanked 39 Times in 6 Posts


The date results seems ok, but your temp dir does not have the sticky bit set (permissions like drwxrwxrwxt). I'm not sure this can influence the script so much...

On a second review of your errors...
- do you have any dir with "-" in the name, excepting the date? This can be a problem because the date of the backup archives is extracted from their names. (Please read the detailed description)
- for the mysql error - do you have a line in your script identical with the one below?
mysql -u$dbuser -p$dbpassword $rdb < $TAR -xvjp $BACKUPDIR/$YDATE-$MDATE/$i
If you do then the error is because $TAR variable is empty, which means the script can't find tar on your system (which tar)
If you don't have the line identical with the one above please get the latest version of the script.

Originally Posted by clttech View Post
Here is the results
root@c3po:~# date +%d
root@c3po:~# date +%F
root@c3po:~# date +%Y-%m

Here is the result of the ls -l of /tmp

drwxrwxrwx 6 root root 4096 2011-04-15 14:35 tmp
Reply With Quote