tag:blogger.com,1999:blog-1743301812738495830.post8269737971357324443..comments2023-12-31T05:43:26.554-08:00Comments on Lak J Comspace: Docker MySQL Automatic Backups using Cron and SupervisorMadhuranga Lakjeewa (මධුරංග ලක්ජීව)http://www.blogger.com/profile/02483957946338617331noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1743301812738495830.post-75900072515823139532019-11-29T01:19:44.557-08:002019-11-29T01:19:44.557-08:00Hi Christophe,
Which command are you trying to ext...Hi Christophe,<br />Which command are you trying to externalize exactly?Madhuranga Lakjeewa (මධුරංග ලක්ජීව)https://www.blogger.com/profile/02483957946338617331noreply@blogger.comtag:blogger.com,1999:blog-1743301812738495830.post-50563618663663771122019-11-28T01:35:53.264-08:002019-11-28T01:35:53.264-08:00Hi Madhuranga,
Thank you for your great example.
I...Hi Madhuranga,<br />Thank you for your great example.<br />I'm trying to do the exact same, but instead of adding the cron commands in the dockerfile, I tried to do it in an external txt file that I copy inside the container then give to crontab.<br />Unfortuantely the new line (\n) get removed, and even if appending \n to the file inside the container doesn't fix.<br />The crontab -l shows the correct commands with a new line, but never get executed.<br />I would like to externalize the cron commands from the dockerfile but this doesn't seems to work. Have you tried this ? do you have a fix/workaround ?<br />Thank you for your help<br />Christophehttps://www.blogger.com/profile/00793236895883223638noreply@blogger.com