View Single Post
  #106  
Old 17th April 2011, 11:08
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 69
Thanks: 4
Thanked 38 Times in 6 Posts
Exclamation

Hello,

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?
Code:
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.


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

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

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