quickshiftin / mysqlbkup

Lightweight MySQL backup script in BASH
GNU Lesser General Public License v3.0
157 stars 70 forks source link

Script can run only once a day #14

Closed hirbod closed 4 years ago

hirbod commented 7 years ago

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?

samwilson commented 7 years ago

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

VEINHORN commented 4 years ago

@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.

quickshiftin commented 4 years ago

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

quickshiftin commented 4 years ago

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