Zammad restore in docker

Hi community
my question is similar to https://help.univention.com/t/zammad-app-migration-to-new-ucs-installation/13354

The docker app zammad creates multiple docker instances

zammad_zammad-backup_1 zammad_zammad-memcached_1 zammad_zammad-postgresql_1 zammad_zammad-scheduler_1
zammad_zammad-elasticsearch_1 zammad_zammad-nginx_1 zammad_zammad-railsserver_1 zammad_zammad-websocket_1

the zammad_zammad-backup_1 creates backups of file and the database
but I am unable to perform a restore from this docker instance

root@ucs1:/etc# docker exec -it zammad_zammad-backup_1 /bin/bash
bash-5.0# su - zammad
14dfd419171a:~$ /opt/zammad/contrib/backup/zammad_restore.sh

# Zammad restored started - Tue Jan  5 09:15:24 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
su: must be suid to work properly
# Starting Zammad
/opt/zammad/contrib/backup/functions: line 132: service: command not found

# Zammad restored successfully - Tue Jan  5 09:15:35 UTC 2021!

From wich of the instances I have to start the restore ? in order that it has the correct environment?

Hello @Luckyh,

I assume, you want to run the restore feature that Zammad offers in the product. Am I right?

If so, I think it is not specific to the app or its integration with UCS, but rather with Zammad itself. In this case, I recommend to open a topic in the Zammad Forum.

Best regards,
Nico

https://community.zammad.org/t/zammad-restore-from-multi-instance-docker/5977

Yes, or does univention offers any restore capability ? I haven’t seen one.

Hello @Luckyh,

the App Center offers an interface for apps to create a backup and restore it during app life cycle actions like e.g. app update. This can be used if for example the persistence methods of the app are not enough and some handcrafting would be necessary.

Zammad does not use this interface. But that does not mean that no backup would be possible.

Having a look into the Zammad Forum I found this posting: https://community.zammad.org/t/how-to-restore-zammad-backup-in-docker-compose-install/1831

I’m not sure, if it matches to your use case and if it helps.

Best regards,
Nico

Mastodon