zulip/docs
Shubham Padia 2ca9e11e8a export: Include realm string_id and timestamp in tarball filename.
The download URL for a realm export tarball previously contained
only a random suffix, making it easy to download the wrong file
when multiple exports were available in the admin UI -- or when
an admin manages exports across multiple organizations.

Embed both the realm's string_id (when non-empty) and the UTC
timestamp of the export in the tempdir prefix, producing tarballs
named like zulip-export-<string_id>-2026-05-25-09-30-45-<rand>.tar.gz
(or zulip-export-2026-05-25-09-30-45-<rand>.tar.gz for the root
realm, whose string_id is empty). The timestamp format matches
the convention used by `./manage.py backup`; the random suffix is
retained to disambiguate same-second exports.

The prefix is built by a new `export_tarball_prefix()` helper in
`zerver/lib/export.py`, shared by the `export` and
`export_single_user` management commands and the deferred-work
queue worker that handles admin-UI export requests.

Fixes https://chat.zulip.org/#narrow/channel/9-issues/topic/discrepancies.20in.20data.20export/with/2467409

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-29 00:14:43 +08:00
..
_static dev_docs: Better present images in tables. 2025-04-24 11:23:38 -07:00
_templates docs: Add Docker as a top-level entry in the production sidebar. 2026-05-05 17:57:43 -07:00
contributing docs: Document keypress visualizers for screencasts. 2026-05-21 10:05:02 -05:00
development docs: Rework schema migrations guide around the online-deploy model. 2026-05-28 15:59:32 +08:00
documentation docs: Create "Project processes" directory. 2026-05-12 23:49:49 -07:00
git docs: Update and add links to section on reading git history. 2026-02-04 12:00:56 -08:00
images docs: Add documentation for capturing screenshots. 2026-01-21 15:55:47 -08:00
outreach contributor docs: Tweak number for accuracy. 2026-05-22 14:23:03 +02:00
overview docs: Move "Directory structure" to subsystems directory. 2026-05-12 23:49:49 -07:00
processes docs: Document the integration review process. 2026-05-22 09:11:23 -04:00
production export: Include realm string_id and timestamp in tarball filename. 2026-05-29 00:14:43 +08:00
subsystems docs: Rework schema migrations guide around the online-deploy model. 2026-05-28 15:59:32 +08:00
testing docs: Link to Greg's FlutterCon 2025 talk in testing-philosophy doc. 2026-01-15 13:38:59 -08:00
translating docs: Sync Polish translator glossary with current "Combined feed" string. 2026-05-09 23:17:11 -07:00
tutorials docs: Move "Directory structure" to subsystems directory. 2026-05-12 23:49:49 -07:00
webhooks integration_url_modal: Support boolean URL params defaulting to true. 2026-04-11 22:36:08 -05:00
.gitignore gitignore: Anchor patterns that should be anchored. 2017-07-19 14:03:49 -07:00
code-of-conduct.md repository: Add CODE_OF_CONDUCT.md. 2017-06-14 18:43:08 -07:00
conf.py docs: Allow intersphinx linking to docker-zulip docs. 2026-02-12 09:07:20 -08:00
index.md docs: Create "Project processes" directory. 2026-05-12 23:49:49 -07:00
Makefile Revert "docs: Temporarily disable parallel building." 2022-02-28 16:28:31 -08:00
README.md docs: Capitalize Markdown consistently. 2020-08-11 10:23:06 -07:00
THIRDPARTY bootstrap: Remove bootstrap-btn file and refs. 2026-05-21 17:31:24 +05:30

Zulip Markdown documentation hosted elsewhere

The Markdown files in this directory ( /zulip/docs ) are not intended to be read on GitHub. Instead, visit our ReadTheDocs to read the Zulip documentation.