Hello,
The date results seems ok, but your temp dir does not have the sticky bit set (permissions like drwxrwxrwx
t). 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
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
|