Repository messaging and storage

ctrl+alt+d · filesystem cache, repository messaging and the product origin object pool

L2 object pool

Guides

Import & export images

Save a machine to an .img file, or bring an ext4 image from your computer into brintOS.

Transfers run here, on your computer. Keep the browser tab or terminal open and your computer awake until completion. Interrupted transfers must start again.

Download in the browser · Import in the browser · Use the command line

In the browser

Download a snapshot

Use a current Chrome, Edge, Firefox or Safari with website storage enabled. The image is built in temporary storage on this device, then saved through your browser's normal download manager. The Node commands below work without a browser.

  1. Open the repository and select Snapshots.
  2. Click Download beside latest or the saved snapshot you want.
  3. Keep the page open while the image is prepared and downloaded.
  4. If your browser blocks the automatic download, click save the completed image.
  5. Find the .img file in your browser's Downloads. The final average rate appears when the image has been handed to the browser.

Allow space for both the temporary image and your downloaded copy. The image includes filesystem overhead, so it can be larger than the size shown for the repository. Source files are streamed through memory rather than saved as additional temporary files. Your browser's website-storage quota may be smaller than the free space on your disk; its reported estimate is not a reliable measure of available space. Temporary images are removed after the download stream finishes or is cancelled; abandoned images are cleaned up when you return to the site. Older browsers without writable temporary storage can use the Node commands below.

latest is the last published snapshot. To include newer live changes, stop the machine and have a repository admin click Snapshot on the Live row first.

Import into a new repository

  1. Sign in and open New machine.
  2. Under Import an ext4 image on this device, choose your .img file.
  3. Choose the owner, repository name and visibility, then click Create machine image.
  4. Keep the import page open until it completes. Click Open repository files to view the result.

Use a raw ext4 filesystem image, such as a brintOS export. ISOs, compressed archives and disk images with partition tables are not supported. A successful import creates live and latest, preserving file ownership, permissions, symlinks and hard links.

To import into an existing empty repository, use the command line below.

On the command line

Install Node.js 22.12 or newer and curl. These Bash commands download and run the importer or exporter; there is no brintOS package to install.

1. Copy the machine hostname

Open the repository's Settings → Machine subdomain and copy its hostname. Replace the placeholder below with that value, without https:// or a trailing slash. If Settings is not visible, ask the repository owner for the hostname.

MACHINE_HOST='paste-machine-subdomain-here'
set -o pipefail

The hostname looks like abc123.brintos.dev; it is not the brintos.io/owner/repo page address. Copy it from the same stage as your repository and token. pipefail makes a failed download fail the pipeline too.

2. Set a token when needed

Create a personal access token in Settings → Tokens. Its account must have access to the repository, with these token permissions:

OperationToken permission
Export a public snapshotNo token needed
Export a private snapshotrepo:read
Import into an empty repositoryrepo:write
export BRINTOS_TOKEN='paste-your-token-here'

Node reads the token from the environment. Keep it out of the URL. MCP access tokens work here too; agents given a token for one import should use the MCP import instructions.

3. Export to a local file

Download latest to a new file named machine.img:

curl -fsSL "https://$MACHINE_HOST/export" | node - machine.img

To choose a saved snapshot, add its name as the last argument:

curl -fsSL "https://$MACHINE_HOST/export" | node - backup.img 'snapshot-name'

The destination file must not already exist. Wait for Export complete.

Or import a local file into an empty repository

Create a destination with New machine → Start from scratch, or use an existing empty repository. Set MACHINE_HOST to that destination's subdomain and set your write token as above. Then run:

curl -fsSL "https://$MACHINE_HOST/import" | node - machine.img

Wait for Import complete. Live and latest are ready. The destination must have no files, directories or saved snapshots. Imports cannot overwrite a populated repository.

Progress, speed and memory

Both clients show recent speed in MiB/s and a final average. Upload counts file content processed; download counts image bytes written. Timing includes processing, waiting and validation, so these rates can differ from network speed.

File data streams in chunks; filesystem metadata stays in memory. The browser shows a total page-and-worker memory estimate when available, or says it is unavailable. Processor counters alone are not the total. Node reports process memory (RSS), including workers. Imports support images up to 1 TiB and 250,000 entries, subject to available memory. Exports also need enough free disk space.

If a transfer fails

  • Cannot import into a non-empty repository: create an empty destination with Start from scratch and use its hostname.
  • Set BRINTOS_TOKEN: set the token in the same terminal. Check its permissions and that it belongs to the same stage as the repository.
  • EEXIST: choose a new output filename. The exporter protects existing files.
  • Unsupported ext4 superblock: check that the input is a raw ext4 filesystem image.
  • Interrupted import: start a fresh transfer. Failed imports preserve existing empty repositories and discard newly created ones. If cleanup could not finish, open New machine → Incomplete image imports and cancel the pending import first.

Individual files

Use the repository's file browser to upload or download individual files. To work in a Linux shell, see launching with Node. To boot a downloaded image, see launching a local ext4 image.