Coder Social home page Coder Social logo

mysqlbkup's People

Contributors

4fd81048-brian avatar amedee avatar cobbman avatar quickshiftin avatar veinhorn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mysqlbkup's Issues

sed command (line 240)

I had a problem on mac using the "-r" flag on line 240

240-yours: dbs=$(echo $dbs | sed -r 's/(Database |information_schema |performance_schema )//g')

240-mine: dbs=$(echo $dbs | sed -e s/Database//g -e s/information_schema//g -e s/mysql//g)

Support for more granular backups

Due to the current way the date format is being set, this script does not support hourly backups (for example) - it would be good if the date format is exposed within the config file. As far as I can see this should be sufficient to support multiple backups within a day.

Exclude certain db's

One missing feature would be to be able to exclude certain db's, so that they are never backed up.

Host Checking

Line 205 should read
if [ -z "$HOST" ]; then
not
if [ ! -d "$HOST" ]; then

Script can run only once a day

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?

Max Backups Count

First off, thanks for a great script!

FYI, on line 141 of mysqlbkup.sh, I think the operator should be '-ge' rather than '-gt'. Otherwise, it will only cull backups when the max is exceeded instead of maintaining the max (because we need to count the backup that is about to occur). Thanks again!

  • S

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.