kiorky / db_smart_backup

Another database(db) smart backup tool (mysql/postgresql/slapd/mongo/es/redis)
http://www.makina-corpus.com
Other
28 stars 7 forks source link

fix MYSQL_UNIX_PORT variable not set because of pipe process env (tes… #7

Closed regilero closed 8 years ago

regilero commented 8 years ago

…ted on Centos6.7)

http://mywiki.wooledge.org/BashFAQ/024 "I set variables in a loop that's in a pipeline. Why do they disappear after the loop terminates? Or, why can't I pipe data to read?" -> because the pipeline+while is a process in another scope. On the solutions I've tested the mkfifo and it fixed my env.

My env: Centos 6.7 MYSQl_SOCK_PATHS="/srv/data/mysql/mysql.sock"

kiorky commented 8 years ago

See also https://github.com/kiorky/db_smart_backup/commit/758cc0a0e4d27417861cf3b8c155f2a85fc13a58

& 419885abbd8612e6a8b4360558cc319b78369706

regilero commented 8 years ago

@kiorky tested new version, issue fixed, thanks.