zigo928 / xtrabackup-manager

Automatically exported from code.google.com/p/xtrabackup-manager
Other
0 stars 0 forks source link

backup fails if any dot files ".ssh" etc, exist in /var/lib/mysql directory #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. mkdir /var/lib/mysql/.ssh
2. run dailybackup
3. backup fails because the recursive delete function fails to remove the 
copies dot file

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Warning: rmdir(/backups/open0817.test.com/1401/): Directory not empty in 
/home/xtrabm/xtrabackup-manager/includes/service.classes.php on line 1101
2012-07-27 04:42:46 +0000 [ERROR] : [ An error occurred while trying to perform 
the backup. Proceeding to log some details to help debug... ]
2012-07-27 04:42:46 +0000 [ERROR] : [ Error Caught: recursiveDeleter->delTree: 
Error: Could not rmdir() on /backups/open0817.test.com/1401/ ]
2012-07-27 04:42:46 +0000 [ERROR] : [ Trace: #0 
/home/xtrabm/xtrabackup-manager/includes/backupSnapshot.class.php(294): 
recursiveDeleter->delTree('/bookprep/backu...')
#1 /home/xtrabm/xtrabackup-manager/includes/backupSnapshot.class.php(248): 
backupSnapshot->deleteFiles()
#2 /home/xtrabm/xtrabackup-manager/includes/backupSnapshotGroup.class.php(192): 
backupSnapshot->delete()
#3 /home/xtrabm/xtrabackup-manager/includes/rotatingBackupTaker.class.php(329): 
backupSnapshotGroup->deleteAllSnapshots()
#4 /home/xtrabm/xtrabackup-manager/includes/backupSnapshotTaker.class.php(245): 
rotatingBackupTaker->applyRetentionPolicy(Object(backupJob))
#5 /home/xtrabm/xtrabackup-manager/includes/cliHandler.class.php(902): 
backupSnapshotTaker->takeScheduledBackupSnapshot(Object(scheduledBackup))
#6 /home/xtrabm/xtrabackup-manager/includes/cliHandler.class.php(103): 
cliHandler->handleBackupActions(Array)
#7 /home/xtrabm/xtrabackup-manager/xbm(36): cliHandler->handleArguments(Array)
#8 {main} ]

this is because the glob function doesn't match the hidden directory;

    $files = glob( $dir . '*', GLOB_MARK );

in service.classes.php line 1084

Original issue reported on code.google.com by t...@limepepper.co.uk on 27 Jul 2012 at 5:20