Open roomcays opened 6 months ago
Use this command instead.
docker exec -it zulip bash /sbin/entrypoint.sh app:help
You will get the following response.
Available commands:
> app:help - Show this help menu and exit
> app:version - Container Zulip server version
> app:managepy - Run Zulip's manage.py script (defaults to "shell")
> app:backup - Create backups of Zulip instances
> app:restore - Restore backups of Zulip instances
> app:certs - Create self-signed certificates
> app:run - Run the Zulip server
> [COMMAND] - Run given command with arguments in shell
Then use this to backup.
docker exec -it zulip bash /sbin/entrypoint.sh app:backup
It will ask for your PostgreSQL password. Worked for me.
This needs to be documented.
The official documentation currently says:
Unfortunately, this does not work with docker-containerized 7.5 version due to two errors:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/postgresql/14/bin/pg_dump'
uploads
andsettings/zulip-secrets.conf
in final .tar.gz fileThis can be fixed by some small edits of
/home/zulip/deployments/current/zerver/management/commands/backup.py
:The first is to be discussed and may take the form of
$(which pg_dump)
instead of fixed path, BUT the{major_pg_version}
will be then lost. This, however, may not be the issue of docker-packaged deployment (I'm not sure about it).The second one is adding
--dereference
switch totar
command:Which IMO should not have negative implications.
Whole thing might be discussed with Zulip's upstream team so the docker and "native" versions of
backup.py
could be the same.