mysql database daily and weekly backup script.

DAILY/		     _        
  SUN/                      |
            Alldb.gz        |	 
	    dbname.gz    |
	    dbname.gz	|	    WEEKLY/  	 
  MON/                       >	          week-1.tar.gz
           Alldb.gz         |                 week-2.tar.gz
	   dbname.gz     |       
	   dbname.gz	|
           ...	  	        |
           ...                _|