mysql script fix
This commit is contained in:
parent
3e45bf6f63
commit
67ba9b7f15
@ -30,7 +30,7 @@ sqlbk() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ -e /usr/bin/mysql ]] && sqlbk
|
[[ -e /etc/init.d/mysql ]] && sqlbk
|
||||||
```
|
```
|
||||||
|
|
||||||
I personnaly have this script running once a week, in my user's personnal crontab (editable using the `crontab -e` command) :
|
I personnaly have this script running once a week, in my user's personnal crontab (editable using the `crontab -e` command) :
|
||||||
|
@ -135,7 +135,7 @@ sqlbk<span class="o">()</span> <span class="o">{</span>
|
|||||||
<span class="k">done</span>
|
<span class="k">done</span>
|
||||||
<span class="o">}</span>
|
<span class="o">}</span>
|
||||||
|
|
||||||
<span class="o">[[</span> -e /usr/bin/mysql <span class="o">]]</span> <span class="o">&&</span> sqlbk
|
<span class="o">[[</span> -e /etc/init.d/mysql <span class="o">]]</span> <span class="o">&&</span> sqlbk
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ sqlbk<span class="o">()</span> <span class="o">{</span>
|
|||||||
<span class="k">done</span>
|
<span class="k">done</span>
|
||||||
<span class="o">}</span>
|
<span class="o">}</span>
|
||||||
|
|
||||||
<span class="o">[[</span> -e /usr/bin/mysql <span class="o">]]</span> <span class="o">&amp;&amp;</span> sqlbk
|
<span class="o">[[</span> -e /etc/init.d/mysql <span class="o">]]</span> <span class="o">&amp;&amp;</span> sqlbk
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user