I have alos ask in this forum https://help.univention.com/t/zammad-restore-in-docker/16913
root@ucs1:/var/lib/univention-appcenter/apps/zammad/data/zammad/contrib/backup# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d455eaf4e2dc docker.software-univention.de/zammad-zammad-nginx:3.5.0-3 "/docker-entrypoint.…" 18 hours ago Up 18 hours 0.0.0.0:40001->80/tcp zammad_zammad-nginx_1
8d097fd06bb5 docker.software-univention.de/zammad-zammad-scheduler:3.5.0-3 "/docker-entrypoint.…" 18 hours ago Up 18 hours zammad_zammad-scheduler_1
f24942ccbbf3 docker.software-univention.de/zammad-zammad-websocket:3.5.0-3 "/docker-entrypoint.…" 18 hours ago Up 18 hours zammad_zammad-websocket_1
14dfd419171a docker.software-univention.de/zammad-zammad-backup:3.5.0-3 "/usr/local/bin/back…" 18 hours ago Up 18 hours 5432/tcp zammad_zammad-backup_1
5cab3659bfa2 docker.software-univention.de/zammad-zammad-railsserver:3.5.0-3 "/docker-entrypoint.…" 18 hours ago Up 18 hours zammad_zammad-railsserver_1
b02f6dcdc586 docker.software-univention.de/zammad-zammad-elasticsearch:3.5.0-3 "/tini -- /usr/local…" 18 hours ago Up 18 hours 9200/tcp, 9300/tcp zammad_zammad-elasticsearch_1
3cc949153423 docker.software-univention.de/zammad-zammad-postgresql:3.5.0-3 "docker-entrypoint.s…" 18 hours ago Up 18 hours 5432/tcp zammad_zammad-postgresql_1
296b63e232f4 docker.software-univention.de/zammad-zammad-memcached:3.5.0-3 "docker-entrypoint.s…" 18 hours ago Up 18 hours 11211/tcp zammad_zammad-memcached_1
Actual behavior:
if I connect inside the backup container I can backup my zammad but I am
Unable to restore from there
Steps to reproduce the behavior:
root@ucs1:/# docker exec -it zammad_zammad-backup_1 /bin/bash
bash-5.0# /opt/zammad/contrib/backup/zammad_restore.sh
# Zammad restored started - Tue Jan 5 10:27:45 UTC 2021!
The restore will delete your current config and database!
Be sure to have a backup available!
Enter 'yes' if you want to proceed!
Restore?: yes
Enter file date to restore:
20201224164307
20210104163206
20210105082916
File date: 20201224164307
Enter db date to restore:
20201224164307
20210104163206
20210105082916
DB date: 20201224164307
# Stopping Zammad
/opt/zammad/contrib/backup/functions: line 132: service: command not found
# Restoring Files
# Ensuring correct file rights ...
chown: unknown user/group zammad:zammad
# Checking requirements
# ... Dropping current database zammad_production
env: can't execute 'ruby': No such file or directory
# ... Creating database zammad_production for owner zammad
env: can't execute 'ruby': No such file or directory
# Restoring PostgrSQL DB
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# Starting Zammad
/opt/zammad/contrib/backup/functions: line 132: service: command not found
# Zammad restored successfully - Tue Jan 5 10:27:59 UTC 2021!
Off course in this instance is not the postgres DB nor railserver or service (function line 132:)
so i wonder in which environment i have to run a restore…