mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5124] [Issue]: Pre-update snapshot backs up re-downloadable files #2834
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2834
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5124
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Before applying an update, the launcher snapshots the entire data directory, including re-downloadable model weights and runtime files. This causes multi-gigabyte copies, long apparent hangs, and unnecessary disk-space requirements.
Expected behavior
The pre-update snapshot should protect irreplaceable user data while excluding regenerable directories such as models/ and sidecar-runtime/, and potentially backups/ and storage_backup_*.
Actual behavior
start.bat runs node scripts\protect-launcher-data.mjs snapshot, which recursively copies the entire data directory without exclusions. A real install copied approximately 7.1 GiB, including about 5.8 GB of model weights and vendored CUDA binaries, and required roughly 7 GB of free space before updating.
Steps to reproduce
Environment
Logs, screenshots, or video
Relevant code: await cp(dataDir, resolve(incompleteDir, "data"), { recursive: true, preserveTimestamps: true, errorOnExist: true, }). No screenshots or video provided. Reported directory sizes: models/ 5,072 MB; sidecar-runtime/ 722 MB; capability-packages/ 536 MB; storage/ 666 MB; gallery/ 232 MB; storage_backup_20260613/ 171 MB; game-assets/ 76 MB; backups/ 59 MB; total approximately 7.1 GiB.
Additional context
Environment also included Node v24.17.0 and pnpm 10.34.5. The snapshot is intended to make updates reversible, but model weights and sidecar binaries can be re-downloaded and do not add equivalent safety. Excluding models/, sidecar-runtime/, backups/, and storage_backup_* was suggested.
Discord thread: Backing up too much
Discord thread link: https://discord.com/channels/1417099416812392641/1538418870736519168
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Aug 16, 2026):
@SpicyMarinara is taking this issue. I am also auditing whether sidecar runtimes or model weights enter the normal install path; the focused draft PR will document and fix the verified scope.