#44 Delete old backup file

closed
nobody
None
5
2011-08-29
2011-06-23
No

I have noticed that sometimes an old daily backup file does not get deleted. The next day 2 files are deleted. Changing the line

${FIND} "${BACKUPDIR}/daily/${DB}" -mtime +6 -type f -exec ${RM} -v {} \;

to

${FIND} "${BACKUPDIR}/daily/${DB}" -mmin +9700 -type f -exec ${RM} -v {} \;

fixes that.

Discussion

  • PittaGurneyi

    PittaGurneyi - 2011-08-29
    • status: open --> closed
     
  • PittaGurneyi

    PittaGurneyi - 2011-08-29

    I have no idea why this would change anything besides that you now have set it to 6.73 days. If you can be more precise and create a situation, in which there is unexpected behavior, please post a bug report. Anyway, this is wrong here.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks