-
Notifications
You must be signed in to change notification settings - Fork 20
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
Any idea why the backup is not running for me? #58
Comments
Hi @myriad007, quick tipp, in markdown you can format code like yaml more beautiful and readable. Back to your issue try to remove following networks:
- default
networks: {} or add the default network to the sql container too, and add the default network to the nerworks at bottom e.g. version: '3.3'
services:
server:
...
networks:
- default
backup:
...
networks:
- default
networks:
default: for connecting to the database server, |
I added the networks section as shown below. But no joy, still not backing up. Any logs that I should be looking at to help troubleshoot?
|
Hi @myriad007 It seems that I would # on the sql container remove
- MSSQL_BACKUP_DIR=/var/opt/mssql/backups
# on the sql container change path to
- /mnt/data/mssql/backups:/backup
# on the backup container change to this the backup path as it is the internal cleanup path (https://github.com/bbtsoftware/docker-mssql-backup/blob/bdcc13a3df1ee1776d776f8daa3143e4e3d40d03/backup.sh#L14C1-L15C1)
- /mnt/data/mssql/backups:/backup
# try to set a shorter interval for testing the cron job e.g. every 5 minutes
- CRON_SCHEDULE=*/5 * * * * to check if both container are running
to check the log of a container to enter a container to exit the container Tipp: |
I've added the backup to my mssql container but I am having trouble getting the backup to initiate. Here is my docker compose file:
Have I made an error here? Here is some terminal output:
I don't really know how to go about troubleshooting this issue but any advice will be gratefully received.
The text was updated successfully, but these errors were encountered: