quickshiftin/mysqlbkup

Script can run only once a day

Closed this issue · 4 comments

Because of the filename. I added
date=$(date +%F-%H_%M_%S)

instead of single %F, to be able running more backups a day (without overwriting the file everytime)

Would that be fine for you to change that?

This makes sense, and wouldn't interfere with people still only running it once a day (I think).

@quickshiftin @hirbod @samwilson I have sent pull request #15. So now you can put DATE_FORMAT property to the mysqlbkup.config and specify date format what you like.

For example:

DATE_FORMAT=+%F_%H:%M:%S

Or just use default +%F format.

Thanks @VEINHORN , I saw one small issue w/ the PR, please take a look and I can get it merged.

Having merged the PR from @VEINHORN I am closing this issue.