-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to start selim13/automysqlbackup as a daemon? #11
Comments
Hello! What makes you think that something is wrong? |
Hi Dmitry, |
There should not be any difference for cron between starting container in foreground or detached mode. Also it may be possible that container uses UTC timezone, so |
CRON_SCHEDULE="* * * * *" runs correctly. The problem was in my wrong hour specification. Leading zero in hour makes troubles. I should use CRON_SCHEDULE="10 6 * * *" instead of CRON_SCHEDULE="10 06 * * *". Many thanks for help. Noe it runs :) |
How to start selim13/automysqlbackup as a daemon?
I am new in Docker.
This works fine but requires opened terminal:
sudo docker run
--name automysqlbackup
--network my-network
-v '/var/xxxxxxxx/backup/docker:/backup'
-e DBHOST=mariadb
-e DBNAMES=all
-e USERNAME=root
-e PASSWORD=xxxxxxxx
-e DBNAMES=all
-e CRON_SCHEDULE="10 06 * * *"
selim13/automysqlbackup:2.6-7-debian
I tried to start it as daemon (-d --restart unless-stopped) but it doesn't work unfortunatelly:
sudo docker run
--name automysqlbackup
--network my-network
-v '/var/xxxxxxxx/backup/docker:/backup'
-e DBHOST=mariadb
-e DBNAMES=all
-e USERNAME=root
-e PASSWORD=xxxxxxxx
-e DBNAMES=all
-e CRON_SCHEDULE="10 06 * * *"
-d --restart unless-stopped
selim13/automysqlbackup:2.6-7-debian
What do I wrong? Thanks
The text was updated successfully, but these errors were encountered: