mysql script fix

This commit is contained in:
CaptainArk 2016-03-20 22:30:57 +01:00
parent 3e45bf6f63
commit 67ba9b7f15
3 changed files with 3 additions and 3 deletions

View File

@ -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) :

View File

@ -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">&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>

View File

@ -24,7 +24,7 @@ sqlbk&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;[[&lt;/span&gt; -e /usr/bin/mysql &lt;span class="o"&gt;]]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; sqlbk &lt;span class="o"&gt;[[&lt;/span&gt; -e /etc/init.d/mysql &lt;span class="o"&gt;]]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; sqlbk
&lt;/pre&gt;&lt;/div&gt; &lt;/pre&gt;&lt;/div&gt;