profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/ahindrichs/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

ahindrichs/AutoMySQLBackup 0

A fork and further development of AutoMySQLBackup from sourceforge. http://sourceforge.net/projects/automysqlbackup/

issue commentsixhop/AutoMySQLBackup

Daily rotation not working

We have the same behaviour, with the setting "CONFIG_rotation_daily=1", which keeps three backup files. Due to the size of the backup, we only want to save the last backup.

A solution can be to change mtime to mmin, like:

before: https://github.com/sixhop/AutoMySQLBackup/blob/35dfe71bc3ca7798b311d21ac870008384536c06/automysqlbackup#L997-L999

to: find "${CONFIG_backup_dir}/${subfolder}${subsubfolder}" -mmin +"$((6024$rotation))" -type f -exec echo "dry-running: rm" {} ; else find "${CONFIG_backup_dir}/${subfolder}${subsubfolder}" -mmin +"$((6024$rotation))" -type f -exec rm {} ;

The behaviour should be compatible as far as it goes. If you want, I could create a pull request.

GnaXi

comment created time in a month