[Helper] Remove interactive and pseudo-TTY switch

master
andre.peters 2018-01-13 22:09:17 +01:00
parent e7cbc9116d
commit 8d47f5f347
1 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ function backup() {
debian:stretch-slim /bin/tar -cvpzf /backup/backup_vmail.tar.gz /vmail debian:stretch-slim /bin/tar -cvpzf /backup/backup_vmail.tar.gz /vmail
;;& ;;&
redis|all) redis|all)
docker exec -it $(docker ps -qf name=redis) redis-cli save docker exec $(docker ps -qf name=redis) redis-cli save
docker run --rm \ docker run --rm \
-v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup \ -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup \
-v $(docker volume ls -qf name=redis):/redis \ -v $(docker volume ls -qf name=redis):/redis \
@ -74,14 +74,14 @@ function backup() {
debian:stretch-slim /bin/tar -cvpzf /backup/backup_rspamd.tar.gz /rspamd debian:stretch-slim /bin/tar -cvpzf /backup/backup_rspamd.tar.gz /rspamd
;;& ;;&
postfix|all) postfix|all)
docker run -it --rm \ docker run --rm \
-v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup \ -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup \
-v $(docker volume ls -qf name=postfix):/postfix \ -v $(docker volume ls -qf name=postfix):/postfix \
debian:stretch-slim /bin/tar -cvpzf /backup/backup_postfix.tar.gz /postfix debian:stretch-slim /bin/tar -cvpzf /backup/backup_postfix.tar.gz /postfix
;;& ;;&
mysql|all) mysql|all)
SQLIMAGE=$(grep -iEo '(mysql|mariadb)\:.+' ${COMPOSE_FILE}) SQLIMAGE=$(grep -iEo '(mysql|mariadb)\:.+' ${COMPOSE_FILE})
docker run -it --rm \ docker run --rm \
--network $(docker network ls -qf name=mailcow) \ --network $(docker network ls -qf name=mailcow) \
-v $(docker volume ls -qf name=mysql):/var/lib/mysql/ \ -v $(docker volume ls -qf name=mysql):/var/lib/mysql/ \
--entrypoint= \ --entrypoint= \