Skip to content

Print Archiving

BamDude archives every print automatically — the 3MF file, an extracted thumbnail, parsed metadata, energy and timing data, and full provenance back to the library file or queue item that produced it. Archives are the system of record for what was actually printed: dedup, library usage stats, the queue dispatcher, and the printer-page cover all read from this table.


After the printer confirms the start, Edit archive shows the requested and loaded colour for each filament channel with a confirmed difference. The comparison uses the captured plate and the physical spool in the final printer snapshot. If the evidence changes during preparation, BamDude defers the start.

How Archiving Works

When a print starts, BamDude creates a print_archives row that mirrors the run from start to finish, then pulls the 3MF off the printer's SD card via FTP and attaches it to that row:

graph LR
    A[Print starts] --> B[Create row<br/>status=printing]
    B --> C[FTP-fetch 3MF]
    C --> D[Parse + attach<br/>metadata, thumbnail]
    B --> E[Print runs]
    E --> F[Status -> completed/failed/cancelled<br/>fill duration + energy]

The row comes first, and the file catches up. Fetching the 3MF back off a printer is not quick: measured on a P1S, 22 MB took 8m40s while the printer was printing, because the file is read from the same SD card the print is reading from. (The identical fetch on an idle printer took 96 seconds.) Creating the row afterwards meant the print did not exist anywhere in BamDude until the download finished — no entry in Archives, no start notification, and the queue still showing the printer free. Worse, the smart-plug meter reading that a print's energy is measured against was taken at the end of that download, so everything the printer drew during it went uncounted, bed heating included.

If the FTP fetch fails, the row simply keeps file_path = "" — see 3MF download recovery below. The dispatcher creates exactly one archive per physical print and wires PrintQueueItem.archive_id to it inside the same transaction (so the scheduler and the dispatcher never race to create duplicate rows). Prints BamDude dispatched itself already have their row before the file is uploaded, so the flow above describes prints started elsewhere — the printer's screen, a slicer's Send to Printer, Bambu Cloud.

Calibration prints are not archive entries

A calibration the printer runs by itself, or one started from Bambu Studio, is not archived. A test print of the Filament Calibration wizard is treated the same way: BamDude keeps it for the print itself and charges its filament, but it does not appear in Archives and sends no notifications — see What a calibration print leaves behind.

The 3MF has to be somewhere BamDude can reach

BamDude fetches it from the printer's SD card over FTP, so on most printers the card must be inserted. Without one, only the metadata reported over MQTT can be recorded; thumbnails and 3D preview are unavailable.

On X2D, P2S and the H2 family the file is also fetched from the printer's built-in storage when the card has nothing — including for prints started on the printer's own screen, which would otherwise leave an archive with nothing attached.

X2D / P2S firmware TLS quirk (handled automatically)

Some firmware trips over modern Python's default TLS 1.3 on the FTPS channel — X2D fails the implicit-FTPS handshake outright, P2S hits a session-reuse bug — which left their archive cards empty (no filament / layers / MakerWorld link / thumbnail). BamDude caps the FTPS session to TLS 1.2 for these models so the 3MF download at print start connects and the archive populates. No configuration needed.


What Gets Archived

Each archive row carries the file, the parsed metadata, the run state, and full provenance back to whatever produced it.

Field Description
file_path 3MF copy at data/archive/<printer_id>/<timestamp>_<name>/<filename>.3mf. Empty string means the 3MF couldn't be fetched (fallback row) or was cleaned by retention.
file_size Bytes on disk.
thumbnail_path Extracted PNG from the slicer. Stays even after the 3MF is cleaned. For 3MFs sliced through the Docker slicer sidecar — which skips the desktop-only plate-PNG render — BamDude generates the missing plate thumbnails server-side (an isometric Bambu-green render of the embedded model, 512 px + 128 px, lit and framed like the File Manager's STL thumbnails) so the archive card isn't blank. A plate of many copies is read one part at a time and simplified evenly; a plate still over the preview's face limit after that gets no picture rather than holding anything up.
source_3mf_path Original project 3MF when uploaded from the slicer (separate from the dispatched copy).
Field Description
print_name Slicer-set print name.
filament_type, filament_color Primary filament(s) for the print. Colour prefers the inventory spool loaded on each AMS slot (per slot), falling back to the sliced colour for any slot without an assigned spool.
filament_used_grams Total grams the slicer estimated.
layer_height, total_layers Layer geometry.
nozzle_diameter, nozzle_temperature, bed_temperature Hotend / bed setpoints.
print_time_seconds Slicer's estimate.
actual_time_seconds, time_accuracy Real duration (completed_at − started_at) and the estimate-vs-actual accuracy %, recorded on completed prints and backfilled for history.
sliced_for_model Printer model the 3MF was sliced for, extracted from project metadata.
makerworld_url, designer Auto-extracted from the 3MF when present.
Field Description
status printing, completed, failed, aborted, cancelled, stopped, or the legacy archived. See status badges and changing a status by hand.
outcome_checked_at When somebody checked what the print produced — see Checking a print's result. Empty on a completed print nobody has looked at yet.
started_at, completed_at Wall-clock bounds of the run (NULL until they happen).
failure_reason Short cause key (e.g. layerShift, filamentRunout, userCancelled). Empty when the printer gave no recognisable cause.
error_message Verbose diagnostic from the dispatcher / scheduler — shown on hover over the badge.
energy_start_kwh, energy_kwh, energy_cost Per-print energy from the printer's smart plug. energy_start_kwh is captured at print start so the delta survives backend restarts mid-print. energy_cost is the energy at the electricity price of its own time.
wear_cost, wear_rate Printer wear charged to the print — its measured duration at the printer's hourly rate — and the rate that was applied. Both empty when the printer had no rate or the duration was not measured.
Field Description
printer_id Which printer produced it. A fixed fact of the print: it cannot be changed in the editor or through the API.
library_file_id The library_files row this archive was dispatched from. NULL for external prints (printer-screen, cloud, manual SD-card start).
project_id Optional project the archive was assigned to.
created_by_id User who triggered the print.
subtask_id Printer-assigned subtask identifier observed in MQTT push_status — used as a fast match key by on_print_start.
queue_id The printer_queues row the archive belongs to (every archive has one — external prints fall back to the printer's default queue so stats queries see them).
batch_id UUID shared across all queue items dispatched together; survives queue cleanup so "how many of batch X completed?" still works after the live queue rows are gone.
Field Description
content_hash SHA256 of the bytes actually stored in the archive directory.
source_content_hash SHA256 of the chain-root (unpatched) source. Always populated: when no chain ancestor exists, this archive becomes the chain root and the column is seeded with its own content_hash. Patched variants of a library file inherit this from the library row's hash. Migration m039 backfills legacy NULLs to the same invariant.
applied_patches JSON list of the patches the dispatch pipeline applied before upload — plain identifiers and descriptor objects side by side, e.g. ["mesh_mode_fast_check_off", {"name": "gcode_injection", "plate_id": 2}]. The API returns it exactly as recorded. Informational only — never used to infer disk-file state.

Stored inside extra_data (JSON):

Key Description
printable_objects { id: name } dict from the 3MF — populated for both the modal and M623 skip-objects calls.
gcode_label_objects Whether the slicer wrote per-object identifiers into the gcode. Bambu Studio doesn't emit this field, so missing → True (BS default). OrcaSlicer writes it explicitly.
exclude_object Whether the slicer enabled object exclusion in the print profile.

The skip-objects button in the printer view requires both gcode_label_objects and exclude_object to be true — otherwise sending M623 would fail at the firmware (the gcode lacks the per-object markers).

OrcaSlicer users

OrcaSlicer ships with both flags off by default. Enable Print Settings → Others → Label objects and Exclude objects before slicing. Re-slicing is required — you can't toggle these on an already-sliced 3MF. Bambu Studio users don't need to do anything; the defaults are already correct there.


Archive Status Badges

The Archives page renders a small status pill on each card. The common case (a finished print) shows nothing — the badge appears only when something interesting is going on.

Badge Status Meaning
blue (pulsing) printing The print is running on the printer right now. Click → jumps to the printer page.
(none) completed The print finished successfully. No badge — keeps the grid clean.
red failed The printer reported the print as failed, or the job never started. A print cancelled on the printer's own screen also ends as failed, with the reason userCancelled. Hover the badge to see the failure reason and the error_message.
red cancelled A person stopped the print from BamDude — the printer card, the queue, the Telegram bot, a webhook or the HMS dialog — or a job was cancelled before it started. The reason is userCancelled. Same red styling as failed.
red aborted The printer ended the print without reporting it finished or failed. Counted with failed in statistics.
red stopped A status from older versions. BamDude no longer writes it; prints that carry it keep showing it and count with cancelled.
grey archived A status from older versions for a file that was registered but never printed. BamDude no longer writes it; rows that carry it keep the grey badge.

Changing a print's status by hand

The edit dialog's Status field offers the finished statuses under their own names — Completed, Failed, Aborted and Cancelled — and opens on the print's real one (a print stored as Stopped shows as that). Statistics count Failed and Aborted as failures and keep Cancelled and Stopped in their own Cancelled bucket, so pick the one that says what happened.

  • Printing is never set by hand. It belongs to the print that is running: the field does not offer it, and the API refuses it.
  • A running print's status is locked. The field is shown disabled with the note This print is still running — its status follows the printer and cannot be changed here. The printer's own report closes the print.
  • Changing to Completed clears the failure reason and the error details — a completed print does not keep "cancelled by user".
  • Free stock follows the change. For a print filed under no order, leaving Completed takes the print's parts back off the product's shelf, and entering it counts the good ones in — see Prints without an order. When those parts were already used, the status still changes and the editor says the stock needs correcting by hand on the product page.

Checking a print's result

A completed print carries a Not checked mark on its archive card and on its list row until somebody has looked at what came off the plate. The mark goes away when any of these happens:

  • Defects are recorded for the print — by any of the ways to record them, and a count of zero is an answer too.
  • No defects is pressed — in the print's menu, in its edit dialog, or for several prints at once in selection mode.
  • The plate was swapped automatically — on a printer in swap mode, when the table-change macro answers successfully or the file's own swap sequence clears the plate. Nobody takes such a print off the plate, so it is counted as checked with no defects, at that moment. A swap that failed or was held, a swap settled by hand, and a print started from the printer's screen or a slicer keep the mark: somebody has to go to the printer anyway, and grades the print there. Defects can still be recorded later, from the archive or the Telegram buttons.

The Unchecked filter in the Archives header lists only the prints that still wait.

This is not a pass/fail verdict. Whether the parts are good is the defect count, and marking a print changes neither that count nor any statistic — it only says somebody looked. Only a completed print can be unchecked: a failed, cancelled or running print never is. Prints that had already finished when BamDude began keeping the mark count as checked.

Marking a print needs the right to edit it (archives:update_own for your own prints, archives:update_all for any). An optional reminder about prints that stay unchecked is described under Notifications → Result not checked, and the Telegram bot answers it with buttons and reactions.

API
POST /api/v1/archives/{id}/outcome-checked Mark a completed print as checked, no defects. 409 for a print that is not completed; marking twice is not an error.
GET /api/v1/archives/?outcome=unchecked Only the prints whose result nobody has checked.
outcome_checked_at, outcome_unchecked In every archive answer: when the result was checked, and whether this print still waits.

Collections

The first dropdown in the Archives filter bar picks one collection — a ready-made slice of the list:

Collection Shows
All Every archive.
Last 24 Hours Archives created in the last 24 hours.
This Week Archives created in the last 7 days.
This Month Archives created since the first day of the current month.
Favorites Archives marked with the star.
Printed Prints that have ended, whatever the outcome — everything except the ones still running.
Failed Prints Prints that did not finish: failed, aborted, cancelled and stopped.
Duplicates Archives whose source file was printed more than once.

One collection is active at a time, and it combines with the search box and the other filters.


Deduplication & Chain-of-Custody

BamDude deduplicates archives by their source content hash, not just the bytes on disk.

The reason: the dispatch pipeline can patch a 3MF before upload — for example, commenting out M970/M970.3 vibration-probe commands when the per-print "mesh-mode fast check" toggle is off. The patched file has a different content_hash than the original, so a naive hash dedup would treat every patched variant as a new design.

source_content_hash solves this:

  • When BamDude dispatches a patched print, it stores the SHA256 of the unpatched source in source_content_hash and the SHA256 of the bytes that landed on the SD in content_hash.
  • The on-disk file at file_path is always the unpatched original. Patched bytes live only in /tmp/bamdude_patch_* for the FTP-upload window and are cleaned up by the dispatcher; archive/ never holds a patched variant. This is what lets reprint re-run the patcher per-job and toggle mesh_mode_fast_check / gcode injection in either direction — the patcher's M970 regex only matches uncommented lines and couldn't undo a previously-baked patch if the on-disk source were post-patch.
  • Dedup queries use effective_hash = COALESCE(source_content_hash, content_hash). Every new archive populates source_content_hash (chain root or self-seed), so effective_hash reads source_content_hash directly; COALESCE stays as defence-in-depth.
  • Reprinting from an existing archive copies the unpatched file into a fresh archive directory — new content_hash if the new run patches differently, but the same source_content_hash, so reprint history stays linked to the original design.
  • External prints (started on the printer screen / cloud / manual SD start) get a one-SELECT lookup at archive creation: if any prior archive on any printer matches by content_hash or source_content_hash, the chain is inherited.

The Archives page exposes a "duplicates" filter that groups rows by this effective hash. The "Original print" badge, the original_archive_id link, the detail-endpoint duplicates list, and library-file print counts all bind on source_content_hash with content_hash only as a defence fallback for legacy NULL rows. Consequence: a printer-A unpatched run + a printer-B mesh-mode-disabled run of the same library file are grouped together in the badge and share one on-disk file (see below).

Cross-printer file-on-disk dedup

When BamDude archives a print whose effective_hash matches an existing archive on any printer, the new archive row reuses the existing on-disk path instead of writing another copy. Match is on the chain-root hash (COALESCE(source_content_hash, content_hash)) — every row sharing an unpatched origin shares one on-disk file regardless of which patches each individual dispatch applied. Net effect: printing the same library file on N printers with M different patch combinations still stores one copy on disk + N×M archive rows. delete_archive ref-counts shared file_paths and only removes bytes when the last referencing row is hard-deleted. The same dedup runs in attach_3mf_to_archive (background download-retry path), so a fallback archive whose 3MF lands later joins the existing chain instead of writing the printer-fetched (patched) bytes when an unpatched copy already exists.

If you upgrade from a pre-0.4.2 install where archive/ may still contain leftover patched copies from the prior semantics, run python scripts/prune_orphan_archive_files.py (default dry-run, --apply to delete) to reconcile the directory against the current DB references.

Migrations m009 + m039

source_content_hash and applied_patches were added in m009. Migration m039 backfills source_content_hash = content_hash for legacy NULL rows so the always-populated invariant holds across upgrade.


Saving a printed file back into the library

An archive's 3MF can be copied into the library from the archive's own menu — pick a folder, and the file arrives read the same way an upload is: metadata, thumbnail, per-plate details and badges already filled in, rather than as an anonymous file.

⚠️ Saving the same print twice does not make a second copy. The library recognises identical content and hands back the copy already there, saying so rather than pretending it wrote something.

⚠️ An archive may have no file to copy. A print started from the printer's own screen whose 3MF could not be pulled has a real archive row and an empty file — the action explains that instead of failing quietly. The same applies to reprint and to opening in a slicer.

⚠️ The print's swap declaration travels with the file (Swap Mode). It is the archive's own record, checked against the bytes really copied — never re-guessed from the file name. An archive whose declaration is unknown is refused, and so is a file the library already holds under the other declaration; the library's copy is left as it is and the archive stays.

Read-only external folders are left out of the picker: the library refuses to write into them, and offering a choice that cannot work is worse than not offering it.


Library File Linking

When you print from the file manager, the resulting archive carries library_file_id pointing at the source library row. The library row, in turn, carries running stats:

  • print_count — number of completed prints from this file. Failed, cancelled and aborted runs don't count.
  • last_printed_at — timestamp of the latest completed print.

These are live-updated when a print finishes and were retroactively backfilled from the archive history on first boot of the m014 migration (oldest matching library row wins when multiple files share a hash, so reimports don't steal attribution).

In the file manager, sort by most printed or least recently printed to find the obvious candidates to prune from your library.

External prints aren't linked

Prints started directly on the printer screen, from Bambu Cloud, or from a manual SD-card start have library_file_id = NULL. The chain-of-custody hash still dedups them, but they don't bump library stats — those stats reflect "prints dispatched through BamDude", not "prints that happened to use this design".


3MF Download Recovery

Every archive row starts with file_path = "" and gets its 3MF attached once BamDude has fetched it from the printer. That fetch can fail — the printer is slow, the network glitches, the file has already been moved on the SD card, the path doesn't match. When it does, the row keeps its empty file_path and gains extra_data["no_3mf_available"] = True together with extra_data["no_3mf_reason"] — why the fetch failed (see the banner below) — and is filled in retroactively.

There is no size limit on the 3MF — ftp_timeout bounds a stall, not a slow transfer

A print's 3MF comes back over the same SD card the print is reading from, so the transfer rate depends on what the printer is doing: 231 KB/s on an idle P1S, 43 KB/s on a printing one. ftp_timeout applies per socket operation, not to the whole download, so it is not a limit on file size: a connection that has gone quiet is dropped after the configured seconds, and one that keeps delivering is left to finish. Uploads to the printer are separately capped at 10 minutes, which ftp_timeout does not affect.

Empty file_path and no_3mf_available are not the same thing

The empty path is what the recovery triggers select on, and it is the normal state of a print that started ninety seconds ago. The flag means something narrower: an attempt was made and it failed. Only the flag raises the Archives banner below, which is why it is never set optimistically while a download is still running.

There are four recovery triggers — no periodic polling, so short prints aren't affected:

  1. Startup sweep — on server start, every status='printing' AND file_path='' archive is retried once. Runs as asyncio.create_task so the FastAPI lifespan isn't blocked.
  2. Printer reconnect — PrinterManager.connect_printer fires retry_printer_archives(printer_id) after a successful connection.
  3. on_print_complete last-chance — right before SD cleanup runs at print end, BamDude tries one more download. The file is still on SD and the printer is no longer busy writing — highest-probability success window.
  4. Manual — POST /api/v1/archives/{id}/retry-download. The frontend exposes a "Retry 3MF download" menu item on the archive card, visible only when file_path is empty.

A recovered file must be the plate that was printed: a candidate whose sliced plates do not include the archive's own plate is discarded, never attached. It matters after the print-start download refused a file for holding another plate than the one running — the retries come back with the same stale name that fetched it. When that happens the row keeps the project's name (renamed to the running plate when the name carries a plate number), not plate_1 from the G-code path.

Concurrent triggers don't race: a per-archive asyncio.Lock returns "in_progress" immediately if another retry is already running. Five distinct return statuses (recovered, already_has_file, in_progress, failed, error) map to clean toasts in the UI. The print-start download takes the same lock even though it doesn't come from this service — a printer reconnect part-way through it would otherwise open a second FTP session for a file already on its way, and attach a second copy on top of the first. So does the download for a print BamDude adopts at start-up (below).

One attempt fetches a file at most once. When a download starts and then fails, BamDude stops trying the other candidate names over that connection, which has just failed. The rest of the attempt — a search of the printer's directory listing over a fresh connection, then built-in storage — can still go ahead, but never fetches that same file again; the next trigger asks again. From the listing only a file with the print's own name is taken (X.3mf or X.gcode.3mf, whatever the letter case and spaces or underscores): a file whose name merely contains the print's name belongs to another print and is never attached. From built-in storage the file is checked as it arrives — every frame, and the whole file against the printer's own checksum when the printer sends one — and is written straight to disk rather than held in memory.

While the row has no file yet:

  • Thumbnails and 3D preview won't render — the 3MF doesn't exist locally yet.
  • Skip-objects modal stays hidden — the object list is unknown until the file lands. As soon as recovery completes, the loaded object list is pushed into the printer's MQTT state so the modal works for the rest of the print, not just from the next restart.
  • MQTT-reported metadata still gets recorded — filament use, layer counts, energy, timing all flow in even without the 3MF.
  • The filament weight may be missing — without the 3MF it comes only from the built-in inventory's measured spool drop, and only for slots with a spool assigned. If the file never arrives, type the figure in Edit archive → Filament used (g): statistics, cost and order figures read it, and no spool is debited — it is the archive's number, not an inventory movement. A cost that was empty, or was the farm rate applied to the old figure, follows the new one; a cost from spool tracking stays.

When the file lands, ArchiveService.attach_3mf_to_archive() fills the existing row in place: copies the file to a fresh archive dir, reparses the 3MF, extracts the thumbnail, fills content_hash / print_name / bed_type / all metadata fields, backfills cost / quantity, finishes the swap declaration only for an external print still waiting for one — from the name of the file that actually downloaded; an archive that already has a declaration keeps it — and clears the no_3mf_available flag and its reason. plate_index is backfilled only when the row doesn't already carry one — a row created at print start takes it from live MQTT state, which knows which plate is actually running, and a multi-plate container cannot overrule that.

Archives-page banner — why a print has no 3MF

When a print of the last 30 days was left without its 3MF, the Archives page shows a dismissible banner that says why, because the fix depends on it. BamDude records the reason at every failed fetch, and the banner speaks to the most urgent one, linking the matching troubleshooting entry:

Reason What happened What to do
The printer refused the file connection Port 990 answered with something that is not TLS, so nothing could be read. Not a slicer setting — usually another program was using the printer's file service. See FTPS cleartext answer.
The printer rejected the access code The file-transfer login was refused. Re-copy the access code — see Wrong access code.
The printer's file service didn't answer The connection to port 990 failed or timed out. Check the printer is on and port 990 is reachable — see FTPS port 990 blocked.
The printer didn't keep the file BamDude looked on the printer — its card, and its internal storage on a printer that has one — and the .gcode.3mf was not there. Usually "Store sent files on external storage" is off in the slicer (install step 4). That is the slicer-only variant of the setting, which the printer never reports over MQTT, so the connection diagnostic can't see it — this banner is the only place BamDude can surface it.

Each reason is dismissed on its own, so closing one shows the next rather than hiding it. A row that failed before reasons were recorded gets the last row's wording. BamDude keeps asking for the file on the four recovery triggers above, and Retry 3MF download asks right away.

A print that started while BamDude was off

A print begun from the printer's screen or the slicer while BamDude was down has no print-start event for BamDude to archive it from. Instead, the print that is running when BamDude comes up is adopted: it gets the same row an external print gets at start, the queue row is claimed, the 3MF and thumbnails are fetched through the recovery path above, and the archive card appears like any other.

Two figures on such a row are honest rather than exact, and are marked so:

  • Start time is reconstructed once the 3MF arrives, from the slicer's estimate and the remaining time the printer reported when BamDude joined (estimate − remaining before that moment). If the file never arrives, the start stays unknown rather than invented, and the print's duration is left out of the statistics.
  • Energy counts only from the moment BamDude joined — the plug's meter had no earlier reading — so the figure is marked approximate.

There is no late "print started" notification, and only the print in progress at start-up can be recovered; prints that finished during the outage are gone.


3MF Auto-Cleanup

The archive directory is the largest single chunk of disk BamDude owns — every print copies its 3MF in. The auto-cleanup feature lets you set a retention window: 3MF files belonging to designs that haven't been printed for N days are deleted, but the archive rows themselves stay so the history (thumbnails, costs, notes, energy data, project links) is preserved.

Configuring it

Settings → Printing → File Manager → "Auto-cleanup of stored 3MF files"

  • Toggle — disabled by default. Gates the auto-tick only; manual runs (see below) work whether the toggle is on or off.
  • Retention input — days, minimum 1, default 30.
  • Live preview — shows what would be cleaned right now: X archives in Y groups, Z MB.
  • Last / Next run cards — extracted into a shared <LastNextRunCards> component reused by the library auto-purge. Shows "cleared 5 archive(s), 240 MB freed, 4 hours ago" + "in ~20 hours" so admins can see the schedule without grepping logs. After a server restart the in-memory archives_cleared count is lost; the card shows "count was lost on restart — see logs" instead of a misleading zero (the persistent archive_3mf_cleanup_last_run timestamp survives, only the count goes).

Manual run — Archives page header

The Archives page header has a Cleanup 3MFs button that opens the same cleanup with a per-run override:

  • Days input — pre-seeded from the saved retention threshold, with a one-click "reset to {{days}}" link when you've dragged it. Range 1–3650.
  • Live preview — recomputes whenever the days input changes (debounced).
  • Works with auto-mode disabled — the toggle in Settings only gates the auto-tick. The manual dialog and the API endpoints behind it honour the configured retention threshold regardless. When auto is off the modal shows a small amber hint "Auto-mode is off — only manual runs will fire" but the Run button stays active.
  • Manual runs reset the auto-cycle — a successful manual run stamps archive_3mf_cleanup_last_run so the next auto-tick won't re-scan minutes later.

How it decides what to delete

Eligibility is evaluated per design, not per archive row. A "design" is a group of archives sharing the same effective_hash = COALESCE(source_content_hash, content_hash).

  • The cutoff is the newest activity across the whole group. If you reprinted an old design 3 days ago, every archive copy of that design — even rows from months back — is kept. The intent is "old designs you've moved on from", not "old physical files".
  • Skip rules — if any of these fire, the whole group is skipped:
    • Any archive in the group is currently status='printing'.
    • An active queue item (pending / printing / paused) references any archive in the group.
    • The originating library_files row still exists with a matching hash. The library is your deliberate source of truth — no need to wipe an archive copy when it's still on the source path. The skip-set is built from the always-populated source_content_hash (the canonical chain root), so a patched archive variant correctly maps back to the library row that produced it.

Plan-phase optimisation

The plan phase first does a SQL-side GROUP BY effective_hash HAVING MAX(activity_ts) < cutoff and only loads full rows for buckets that actually fell out of retention. Healthy installs (most groups still hot) skip the heavy row load entirely — which matters on installs with 10k+ archives.

What happens during cleanup

For each eligible design group:

  • The .3mf file is removed.
  • Per-plate .gcode.md5 sidecars are removed.
  • The per-archive directory is removed if it ends up empty.
  • Every archive row in the group has its file_path blanked to "" together — consistent UI, no half-cleared groups.
  • The thumbnail_path and the row itself stay — history is preserved.

Re-printing a cleaned archive shows "3MF unavailable" in the same way as a fallback archive that never had a file. Re-upload from your library or slicer to print it again.

Schedule

Aspect Behaviour
Tick frequency Every 15 min. Cheap — just consults settings + the persisted last-run timestamp.
Auto-run window Runs when now - archive_3mf_cleanup_last_run >= 24 h. The 24h check is a last is not None guard — first run after enabling the toggle fires immediately because no last-run exists yet.
First-fire delay The loop sleeps TICK_INTERVAL_SECONDS (15 min) before evaluating, so the first auto-run lands ~15 min after enabling the toggle (or ~15 min after server boot if the toggle was already on). Click "Run now" in Settings or in the Archives page modal to fire instantly — the manual run stamps the same timestamp and starts the 24h drift cycle.
Manual-run effect A successful manual run stamps the same timestamp, so it postpones the next auto-tick by 24 h instead of stacking.
Toggle effect Consulted every tick — flipping it on/off takes effect without a restart. Toggle gates the auto-tick only; manual runs always work.
Timezone Independent of server-local time — the cycle counts 24 h from the last run, not from midnight.

The library auto-purge follows the same pattern (15 min tick, 24 h drift, manual runs reset). See Library Trash for its analog of the Last/Next run cards.

Endpoint Permission
GET /archives/cleanup/status archives:read
GET /archives/cleanup/preview?days=N archives:read
POST /archives/cleanup/run?days=N archives:delete_all

The optional ?days=N query param (1–3650, clamped) lets the manual dialog override the saved retention threshold without persisting it.

Archive rows are never moved to the trash automatically

There is no per-row archive auto-purge — see the trash docs for the rationale. The 3MF cleanup described above is the only auto-mechanism that touches archive storage; manual delete → trash → restore → empty-trash covers the "I want this row gone" workflows.


3D + G-code Preview

Open the preview from any archive card — click the layers badge in the bottom-right, or right-click → 3D Preview. List view exposes the same action via the row menu. A single modal hosts both views as tabs, sharing one plate panel + bed-volume wireframe so the eye can match what's drawn against what's reported.

3D Model tab

Three.js scene with proper Phong shading:

  • Rotate — click and drag.
  • Zoom — scroll wheel.
  • Pan — right-click and drag.
  • Build-volume wireframe — translucent box matching the printer's bed; pulled from the 3MF's printer_settings so an A1-mini archive renders against a 180×180 box, not a hardcoded 256³.
  • Wireframe / X-ray toggle — flip every mesh in the scene from solid to wireframe so thin walls, supports, and non-manifold edges are visible. Persists across modal opens via localStorage.
  • Supported formats: .stl, .3mf, .obj (OBJ via Three's stock OBJLoader, mounted alongside STL + the custom 3MF parser).
  • Theme-synced background — light SPA theme renders the scene against a light grey, dark theme keeps the off-black bed; the canvas never punches a black rectangle through a light modal.

For multi-plate prints the archive remembers which plate of the source 3MF was actually printed — the 3D preview, G-code preview, thumbnail, and per-plate slicer metadata (print time, filament weight, layers, printable objects) all reflect that plate. There is no plate picker on archives — the archive is a record of one specific print, not a browser. Migration m038 populates plate_index on historical rows and re-parses 3MFs where plate_index > 1 so older multi-plate archives gain the same correctness.

G-code tab

Renders the actual sliced toolpath layer-by-layer — what the printer physically extruded — using gcode-preview (WebGL).

  • Dual-handle layer slider — separate Start and End ranges so you can crop both top and bottom (default range = full build). Useful for inspecting internal infill / specific layer ranges without losing the rest of the model. Chevron buttons step layer-by-layer.
  • Play / pause + speed picker — animates extrusion along the toolpath at 1× / 2× / 4× / 8× selectable speeds. Pauses at end; press play again to restart from Start.
  • Travel-moves toggle — show / hide G0 (non-extrusion) moves to diagnose stringing / oozing patterns. Persisted in localStorage.
  • Export PNG — saves the current view (current Start / End range, current travels state) as a PNG with a filename like <archive>_layers_42-198.png. Useful for tickets and project notes.
  • Streaming progress bar — for big multi-plate gcodes (>20 MB) the loading state shows live 4.2 / 12.5 MB instead of just spinning, then a separate "Parsing G-code…" state once the bytes have landed.
  • Theme sync — same as the 3D tab.
  • Bed wireframe auto-detected from the printer model the archive was sliced for (H2D → 350×320×325 mm, X1C/P1S → 256³, A1 → 256³, A1-mini → 180³, etc.). No configuration.

For source-only archives (project 3MFs exported from BambuStudio without slicing) the modal hides the G-code tab automatically — there's no toolpath to render. The 3D Model tab still works because it renders the geometry, not the toolpath.

The viewer URL carries the archive reference, so refreshing the page keeps you in the shell with the viewer re-rendering correctly. The preview reads from the local archive copy — if the 3MF isn't on disk (fallback or cleaned), the preview is unavailable until the file is recovered.


Commanded values and detailed toolpaths

Choose Analyze G-code in the G-code viewer to open the solid renderer. Classic preview returns to the original viewer with its existing controls. In analysis, Colour by offers commanded speed (mm/s), calculated volumetric flow (mm³/s), nozzle and bed target temperatures (°C), and cooling (%). Part cooling uses the file's P0/P1 channel; auxiliary P2 and exhaust P3 are separate modes. Detailed line types separate outer/inner walls, top/bottom surfaces and support interface; legend entries can be hidden independently.

The colour scale follows the selected layer range. Changing colour mode retains the camera and layer selection. Grey means the file supplies no reliable value, not zero. Flow needs known filament diameter or volumetric extrusion mode and uses extrusion and commanded feedrate, including the supported speed/flow factors. Retraction recovery is not counted as deposited material. These are file commands and calculations, not measured nozzle temperatures, actual acceleration-limited speed or a simulation of every firmware conditional.

Re-print with AMS Mapping

Reprint opens the ordinary Print dialog with the archive's source file and plate. It compares the used channels with the destination printer's current sources — AMS or supported external feeds.

An archive whose file is known to hold no sliced G-code is not reprinted, whatever the file is called: a project archived under a .gcode.3mf name is refused with "slice it first". An archive file that cannot be read is sent as it is.

What the modal shows

The selected plate's required materials and colors, available slots, and nozzle bindings. Several plates have separate requirements and mappings: unused colors from other plates do not become requirements for this print.

Status indicators

Material and colour matches, a different colour, and empty or incompatible sources help you review the selection. Allowing another colour does not relax material or nozzle requirements. Allow match by base material, on by default, may use a resolvable family's filament_type instead of a custom profile name; with it off, a known profile variant remains required. A preview does not reserve a spool: the server checks the complete mapping again before start.

Auto-matcher + manual override

  • Auto-matching looks for a complete mapping of every used channel; one physical slot cannot supply two channels at once.
  • A manual slot choice preserves physical intent. Another printer or plate needs a new mapping review.
  • Slot labels respect Custom AMS Labels; color names come from the catalog.
  • Refresh AMS state in the dialog after changing a spool. Stale information does not permit an incompatible mapping to start.
  • Repeats retain available feed and color rules. Actual sources are checked for the new attempt; old AMS numbers do not move arbitrarily between machines.

See Filament Routing for AMS, external-feed, dual-nozzle, and waiting examples.

The modal exposes the same options table as the new-print and queue modals — see Print Queue. Highlights:

Option Default Description
Bed Levelling Enabled Auto-level before print
Flow Calibration Disabled Calibrate extrusion flow
Mesh-mode fast check Inherits from printer setting When off, BamDude's gcode patcher comments out M970/M970.3 vibration probes — see archive chain-of-custody
First Layer Inspection Disabled AI inspection of first layer
Timelapse Disabled Record timelapse video
Record to Internal storage Which medium keeps the recording. Shown only on a printer that has both built-in storage and a healthy SD card
G-code injection Per-job Inject custom G-code (see G-code Injection)

File-type badge

Cards show a GCODE (green) or SOURCE (orange) badge. Only GCODE files carry AMS mapping data — SOURCE archives are slicer project files without embedded print settings, so the Reprint button asks you to load them in the slicer first.


Photo Attachments

Attach pictures to an archive — useful for documenting failures, showing finished parts, or pairing a print with a project photo.

  • Auto camera snapshot on print complete — toggle Settings → General → Capture snapshot on print complete. When on, BamDude grabs a frame from the printer's camera the moment the print finishes and attaches it to the archive. When a timelapse was recording for that print (because you enabled it in the send dialog — BamDude never forces timelapse on), the finish photo is pulled from the timelapse's last frame instead: it captures the moment after the toolhead parks but before the bed drops, which a live-camera grab would miss. External cameras keep their own framing.
  • Manual upload — drag-and-drop image files onto the archive detail page, or use the + Add Photo button in the photo strip. Multiple photos per archive are supported.
  • Failure documentation — attaching a photo of a failed print pairs nicely with the archive's failure_reason + error_message fields, so the post-mortem is all in one place.

An archive's photos are served like its other pictures: they need a signed-in session, a media token or an API key, under the archive's own read permission. The photo a notification links to is a separate short-lived copy — see Notifications → Finish Photo URL.


Timelapse Editor

BamDude attaches printer timelapses to the matching archive automatically and lets you trim, retime, and score them in the browser without leaving the shell.

Built-in capture

Format Printers Handling
MP4 X1, X1C, X1E, A1, A1 mini, H2D Attached directly
AVI P1S, P1P Saved immediately + converted to MP4 in the background via ffmpeg (-threads 1, nice -n 19) — runs at low priority so your Pi doesn't choke on it

Once the printer saves a timelapse and BamDude attaches it, you can watch it in the archive. This also works for failed and cancelled prints that were recording. AVI conversion runs in the background.

Where the recording is looked for

The SD card first. When the card has nothing — which is where recordings go on a printer with built-in storage and no card inserted — BamDude looks in the printer's internal timelapse catalogue instead, and downloads from wherever the file actually is. Both the automatic scan after a print and the Scan for timelapse button do this.

That catalogue names the print each recording belongs to, so the video is matched to the right archive outright. The card carries no such information, so there the automatic scan goes only by what appeared after the print started, and Scan for timelapse — which also looks at file names — asks you when several recordings fit.

On both media the printer also reports the full path of the recording it has just finished writing, and the automatic scan takes that file by name instead of assuming the one new recording is the right one. It is still only accepted if it appeared after this print started — otherwise a video recorded from the printer's own screen mid-print, which the printer would honestly report as its most recent, could be attached to the wrong job.

If the printer's storage did not answer completely when the print started — a folder it did not list, or a reply with a line BamDude could not read — BamDude could not see what was already there, so "new since this print started" tells it nothing. A folder the card simply does not have still counts as an answer. In that case nothing is attached automatically — not even a single recording, because an unread card is not an empty one. The recordings stay on the printer for Scan for timelapse, rather than an old one being attached (and, with the clean-up below on, deleted from the printer).

The list of what was on the printer before the print started is kept with the print, so restarting BamDude during a print does not lose it. A print BamDude finds already running gets its list at that moment: what exists then is not treated as new. A print with no such list at all gets nothing attached automatically. The list covers the storage BamDude actually looked at: when the card already held recordings at the start, internal storage was not read, so a recording found there afterwards is not attached automatically — Scan for timelapse offers it. The automatic scan never attaches a recording because its name resembles the print's — that would pick up the video of an earlier print of the same model — and it stops as soon as the next print starts on that printer.

One recording belongs to one archive. Attaching a recording that another archive already holds is refused with a message, whether the scan or you chose it. The recording stays that archive's when its video is later converted or replaced by another one; removing the video from the archive releases the recording, so it can be attached where it belongs.

Work that takes a while does not win over what happened meanwhile. An upload, a scan or a pick that was started before somebody else replaced or removed the archive's video is refused with a message instead of overwriting the newer state — reload and try again. The same goes for an account that lost its rights while its video was still being read: nothing is published. A scan for a finished print attaches nothing once the next print has started on that printer, even if it had already downloaded the recording.

A recording is downloaded for as long as it keeps arriving; only a connection that has gone quiet is dropped. When a printer's file service refuses the connection, the automatic scan leaves that printer alone for a short while that grows with each refusal and starts over once the printer answers. Scan for timelapse is never held back.

Which printers keep timelapses internally

Not the same set as those that keep models internally — a machine can do one and not the other, so BamDude checks the two capabilities separately and only asks for a catalogue the printer says it has.

Clearing recordings off the printer

Settings → General → Remove timelapses from the printer once saved. Off by default. With it on, a recording is deleted from the printer as soon as it has been attached to its archive — from the SD card or from built-in storage, whichever it was read from.

Only ever after the copy is safely saved, and only the very recording that was copied: BamDude reads the file on the printer again and deletes it in the same step, when it is still the same video and the archive still shows its copy. A different recording that has taken the same name stays on the printer, and so does everything when the printer cannot be read, when another print has started on it, when the attach failed, or when you replaced or removed the archive's video in the meantime. The second read is the price of the option — the recording is transferred twice.

Why this is not on by default

Having a copy in BamDude is not the same as nobody needing the file on the machine — it can still be watched from the printer's own screen, or carried away on the card.

Downloading a print's videos

Download print videos in an archive's menu opens one window with everything recorded for that print:

List What it holds
Attached to the archive The video BamDude keeps for the print.
Timelapse recordings on the printer Recordings still on the printer's card or in its built-in storage.
Camera recordings on the SD card The chunks the printer's own camera recorded to the card (ipcam-record.*), when video recording is on at the printer.

Tick what you want and press Download selected: one file is saved as it is, several as one ZIP archive. It is prepared and saved the same way as a download from the printer's file browser, with the same progress strip, limits and the choice to keep it running in the background.

The three lists answer separately. The attached video needs nothing from the printer — it is offered when the printer is off, has been removed from BamDude, or when you have no access to its files. Each printer list says what happened to it instead of showing nothing: Nothing found on the printer, The printer did not answer, The printer is still listing its files, You do not have access to this printer's files, This printer has no SD card to read these recordings from, or The printer of this archive is no longer configured.

Nothing is selected for you, and a file is marked Recorded during this print only when BamDude knows when it was written:

  • recordings in built-in storage carry an exact time and are compared as they are;
  • files on the card carry the printer's own clock, and the card does not say which time zone that clock is in. They are shown with the time the printer wrote and the note Printer time — its time zone is not confirmed.

To compare card files as well, type how many hours the printer's clock is ahead of UTC into Printer clock ahead of UTC, hours (for example 2, or -5). Files that then fall within the print are marked Recorded during this print, by the offset you set. An older file, for which the card gives only a date and no hour, is never marked that way: the offset can show that its day lies outside the print, not that it was recorded during it. Time margin widens the window around the print, from 10 minutes to 3 hours. Both settings change only this list: they do not change BamDude's time zone, and they never attach a video to an archive.

Reading recordings from the printer needs the printers:files permission; an API key also needs that printer in its list. The attached video needs only the right to see the archive. A download of recordings that is already prepared is not handed out, and is no longer listed, once that permission is gone; a download of the attached video alone is unaffected.

Editor controls

Open an archive with a timelapse → click the timelapse thumbnail → Edit in the viewer header.

The player and the editor show the whole picture inside the window whatever the video's shape: a recording made upright is not cut off and does not push the controls off the screen, on a desktop or on a phone.

Control Description
Trim handles (two) Drag the two markers on the timeline to set start / end of the kept segment
Speed selector 0.25× → 4× playback speed
Music overlay Upload an MP3 / WAV / M4A / AAC / OGG (100 MB at most) and set its volume; the preview is synced with video playback. The volume you set is the volume of the saved video. A track shorter than the video is repeated, as in the preview
Save without sound (the speaker button) The saved video has no sound at all — neither the music nor the recording's own
Preview Play Plays only the trimmed range with the music overlay applied
Save Re-encodes on the server and replaces the video attached to the print with the edited one
Save as new Re-encodes on the server and keeps the result beside the original, which stays attached

Saving does not wait in the browser. The window shows what the server is doing — waiting for the encoder, encoding with a percentage, saving the result — and offers Cancel the edit. You can close the window meanwhile: the edit goes on, and opening the editor again in the same sign-in session shows it. The percentage reaches 100 only when the edited video is actually saved.

  • One video is edited by one edit at a time; a second Save for the same video is refused until the first ends. The server encodes one video at a time, so an edit may wait for its turn.
  • If the archive's video is replaced or removed while an edit is running, the edit's result is not saved, and the window says so. Nothing is overwritten by a result that arrives late.
  • An edit stops, and saves nothing, if your right to change archives is removed or your session ends while it runs, and when a restore from a backup starts.
  • A cancelled edit reads as cancelled only once the encoder has really stopped. If the encoder could not be stopped (the edit ends with process_unreaped), no other video is encoded — no edit and no layer timelapse — until that process has ended.
  • The edited video keeps the resolution of the original.
  • A video saved with Save as new is listed under Download print videos, marked Saved from the editor, beside the original. It can be downloaded there and, with the right to delete archives, removed with the bin button beside it. It is included in backups like the attached video.

Manual upload + remove

For LAN-only printers or when the auto-attach picks the wrong timelapse:

Action When visible Description
Upload Timelapse No timelapse attached Drag-drop or pick .mp4, .avi, or .mkv — AVI/MKV auto-convert to MP4 in the background
Remove Timelapse Timelapse attached Detach the file and clear the reference (file is deleted from disk)

A new video replaces the old one only once it is complete: until then the archive keeps showing the previous one. A background conversion that finishes after you replaced or removed the video does not bring the old one back.


Source 3MF Upload

For prints started outside BamDude — slicer's Send to Printer button, Bambu Cloud, or a manual SD card start — the archive is created without an associated source 3MF (only the on-printer copy is fetched). The detail page exposes an Upload Source button that lets you attach the original 3MF post-hoc:

  1. Open the archive detail page.
  2. Click Upload Source 3MF in the action bar.
  3. Pick the original file from your slicer's export directory.

Once uploaded the file is stored in source_3mf_path (separate from the dispatched copy), and:

  • 3D model + G-code previews become available for the archive.
  • Re-print works through the standard AMS-mapping modal — the source 3MF carries the slicer's filament list.
  • The archive's chain-of-custody is unaffected — content_hash still reflects what landed on the SD card.

Fusion 360 Design Files

You can attach the original .f3d design source alongside an archive, so the print + design history live together.

Action When visible Description
Upload F3D No F3D attached Pick a .f3d file from your device — stored on disk next to the archive
Replace F3D F3D exists Swap the existing file for a newer revision
Download F3D F3D exists Pull the attached file to your device
Remove F3D F3D exists Delete the attachment (file is removed from disk)

Archives with an F3D show a small cyan badge on the card (next to the source-3MF badge if one is also attached). Clicking the badge downloads the file. The context menu also exposes an Open in Fusion 360 entry — currently a placeholder that hands the file to your OS for the default .f3d association.


Tag Management UI

Tags live in their own settings page so renames, deletions, and bulk edits don't require digging through individual archives.

Archives → gear icon next to the tag filter dropdown.

Action Description
Search Filter the tag list by name
Sort Order by usage count or alphabetically
Rename Update the tag name across every archive that uses it (single bulk operation)
Delete Remove the tag from all archives
Colour pick Assign a colour to the tag — propagates to the chip rendering on cards and filters

Bulk rename

Renaming a tag rewrites every archive's tag list in one transaction — great for fixing typos (abs→abs) or merging similar tags (gift_box + giftbox → gift-box).


Archives originating from MakerWorld carry the designer name + link automatically — see MakerWorld. For everything else (Printables, Thingiverse, custom designs) you can add the metadata by hand:

  1. Open the archive detail page.
  2. Click Edit Details.
  3. Fill Designer (display name) and External Link (any URL).

The card surfaces the designer + a globe button:

Source Globe-button behaviour
External Link set Opens the custom URL
MakerWorld auto-detected Opens the auto-extracted MakerWorld URL
Neither Globe button disabled

Designer attribution is searchable via the archive search box, so "all prints by <designer>" is a single query.


Archive Cards & Actions

Each card shows the thumbnail, filename, printer / model line, duration, status badge, filament, tags, and the order badge. The order badge is clickable — it jumps to that order's page (the click doesn't bubble up to open the archive modal).

The cost of a print that is still running is an estimate and is shown with a ~ prefix (~12.50), on cards and in the list view: it is the filament weight at the default filament price, and the cost is taken from the spools when the print ends. Hovering the figure says so.

A print that did not finish and whose filament was never measured keeps the cost of one full print of its plate. Hovering that figure says so too, so a failed or cancelled print is not read as having used the whole plate's filament.

The printer / model line is uniform across provenance: every archive reads as <name-or-model> [bed-icon] GCODE <hash> and scans identically regardless of whether the archive came from a live printer or a slicer-only upload.

The build-plate icon sits next to the printer / model name and reflects the plate the 3MF was sliced for (Cool / Cool SuperTack / Engineering / High Temp / Textured PEI / Smooth PEI), with the full plate name in the hover tooltip — so you don't have to open the source 3MF in a slicer just to read the bed setting before a re-print. The icon is populated from curr_bed_type in the 3MF's slice_info.config (per-plate, authoritative) with a fallback to project_settings.config for older 3MF shapes; archives created before this feature shipped show no icon until you hit the per-archive Rescan action, which re-parses the on-disk 3MF.

Button Description
Reprint Print immediately on a connected printer. Creates a new archive row but keeps the same source_content_hash, so reprint history stays linked. Opens on the plate that was printed.
Schedule Add to the print queue. Opens on the plate that was printed.
Open the 3D preview.
Download the 3MF file. Disabled if file_path is empty.
Edit archive details (tags, notes, order and line, filament used, defects, status, photos). The printer is not among them — it is a fixed fact of the print.
Retry 3MF download. Only visible when file_path = "".

Printing from an archive needs the right to reprint it. Reprint, Schedule — to a printer's queue or to the Auto-Queue — and Slice all make new print work from the archive, so each asks archives:reprint_own for your own prints or archives:reprint_all for any, beside its own permission (queue:create for queueing, library:upload for slicing). Reading the archive is not enough. With the default groups, Operators and Administrators can do this for any archive they can see.

An archive can be filed under an order — or counted into stock

The edit dialog carries an Order and a Line picker, and the Archives page's selection mode offers Assign to order for a whole batch — which is how a print started from the printer's own screen reaches the order it belongs to. A print that finished successfully and is filed under no order also offers Count into stock, putting its good parts onto the product's shelf; a failed or cancelled print made nothing to count. See Filing a print under its order and Free stock of parts.

Action button labels hide on narrow card widths

Reprint / Schedule / Slice labels appear only at viewport ≥ 1280 px where the responsive grid (md:2 lg:3 xl:4) gives cards real horizontal room. Below that the buttons render icon-only and the existing title= attribute serves as the hover tooltip — fixes the previous "Re..." / "Sc..." label-truncation on narrow viewports.


Correcting filament used

Edit → Filament used (g) can supply or correct an archive's weight, including a print whose 3MF was never recovered. Statistics, cost and order figures read this value; saving it does not debit any spool. A missing cost or one calculated using the farm rate follows the new weight; a cost already calculated from spool tracking stays. Both decimal point and comma are accepted.

A cost written through the API (PATCH /api/v1/archives/{id}) must be a number from 0 to 1,000,000; a negative, larger or non-numeric value is refused.

View Modes

The switch in the page header has three positions:

  • Cards — large thumbnails for visual browsing.
  • List — compact table for data-focused browsing; one row per archive with sortable columns and inline edit / delete.
  • Calendar — the last 30 days as a grid of days, with three totals above it: Prints (30 days), Successful and Failed. Each day cell shows how many prints it holds and is coloured green when all of them succeeded, red when all failed and yellow when mixed. Clicking a day opens that day's prints in a panel beside the calendar — thumbnail, name, status, time, printer and filament for each; clicking the day again closes it. The view stays on the calendar, and the search box and filters are hidden while it is open. A day is the calendar day the print was created on, in your time zone, so the number in a cell and the prints an opened day lists are the same ones.

Cross-view highlighting

On a card or list row that is a reprint, clicking its purple duplicate badge scrolls to the original and highlights it for 5 seconds. When the original is not on the current page or is filtered out, the page says Original print not visible - try clearing filters.

View archive in a queued job's menu on the Queue page opens this page on the page of the list that holds that archive, under your current filters and sort, and highlights it the same way. When the list as filtered does not hold it, the page says The linked archive is not in the current list - try clearing filters.


Tags & Filtering

Organize archives with custom tags. Filter by collection, printer, material, kind of print, tags, colour, favorites, and the duplicates view (which uses COALESCE(source_content_hash, content_hash)). Tag management is under the gear icon next to the tag filter.

Sorting

In List view, click a column header — Name, Printer, Print time, Date or Size. Click it again to reverse. Each column opens at the end worth looking at first: the newest print, the biggest file, the longest print, names A-Z.

Sorting by printer uses the name shown in the column, so a print from a printer you have since deleted keeps its place in the order rather than disappearing or collecting at one end.

Print time sorts on the real duration of the print, not the slicer's estimate, so a print that never finished sorts to the end.

Cards view has no headers to click, so it keeps a sort dropdown beside the colour filter — Date, Name, Size, Printer, Cost, Energy, Filament or Print time — with a button next to it that reverses the direction.

Paging

How many archives per page, which page you are on, and how many there are in total are one control at the end of the list — the same bar the spool table uses.

It stays put when everything fits on one page: the arrows go, the size selector remains. Otherwise "24 of 24" would be a dead end, with no control left to ask for more.

Changing the page size returns you to the first page — staying on page 3 of a re-sized list lands somewhere you did not ask for, and past the end when the list gets shorter.

Filter chips

The filter bar is shown in the Cards and List views. The page has no date-range picker: the Last 24 Hours, This Week and This Month collections narrow the list by date, and the Calendar view opens a single day.

Control Behaviour
Search archives... Free-text search box, full width above the other filters.
Collection Dropdown, one at a time — see Collections. Defaults to All.
Printer Dropdown, single-select; defaults to All Printers. Archived printers are listed too.
Material Dropdown, single-select; defaults to All Materials.
Favorites Toggle: show only archives marked with the star. Hidden while the Favorites collection is selected.
Hide Failed Toggle: leaves out prints that did not finish — failed, aborted, cancelled and stopped, the same ones the Failed Prints collection shows. Hidden while that collection is selected.
Unchecked Toggle: only completed prints whose result nobody has checked yet.
Hide Duplicates Toggle: collapses reprints of the same source file (same effective_hash) into one row. Hidden while the Duplicates collection is selected.
Tag Dropdown, single-select; defaults to All Tags. Shown once any archive has a tag, with the gear button for tag management beside it.
Colors: A row of colour swatches, multi-select. With two or more picked, an OR / AND button appears: OR shows archives that used any of the selected colours, AND only those that used all of them. Clear drops the colour selection.
File A green chip with the file name, present when the page was opened from a file in the File Manager; it limits the list to that file's prints. Click it to remove the filter.
Reset Clears the search and every filter above except the collection and the colours.

Batch operations

Enter selection mode to tag, assign an order, or compare multiple archives at once.

Quick search

Press / to jump to the search box from anywhere on the page.


See Also

  • Print Queue — how queue items become archives, batch tracking, and the post-m019 archive ↔ queue stats refactor.
  • File Manager — the library side of the link, including per-file print_count and last_printed_at.
  • Swap Mode — swap macro events and execute_swap_macros flags carried in extra_data.
  • Orders, Products & Stock — filing a print under an order, and counting an order-less print into free stock.

Originally based on Bambuddy documentation; substantially rewritten for BamDude 0.4.x.