Re: [Automysqlbackup-users] Weekly backups not being rotated?
Automatic MySQL Backup
                
                Brought to you by:
                
                    wipe_out
                    
                
            
            
        
        
        
    | 
      
      
      From: Adrian S. <ad...@pe...> - 2009-07-22 10:06:14
      
     | 
| 
On 22 Jul 2009, at 01:43, Russell Jones wrote:
> Am I not understanding something correctly, or is there an error I am
> encountering?
You do have 2.5?
# VER 2.4 - (2006-01-23)
#    Fixed bug where weekly backups were not being rotated. (Fix by  
wolf02)
I have 2.5 and have the same problem, but it's worth checking I guess.
There are some differences between the routines used for rotating  
weekly backup depending on whether you use a separate directory for  
each db or whether all db's are in one. I use the separate directory  
setting, I think there is a bug with that...
At line 539:
eval rm -fv "$BACKUPDIR/weekly/$DB_week.$REMW.*"
ought to be:
eval rm -fv "$BACKUPDIR/weekly/${DB}_week.$REMW.*"
Because in the former the variable name will be $DB_week. which  
doesn't exist, rather than $DB which is the db name being used. I'll  
give this change a shot. But I'm a shell scripting noob so use it at  
your own risk!
Adrian
-- 
Phone: +44 1382 541 586 or +44 131 208 0840
e-mail <mailto:ad...@pe...>
AOL/Yahoo/Skype/Gizmo ID: perlucida
Web Site <http://perlucida.com>
 |