br-scratch-keepalive is a Python 3.9+ package that installs the scratch-keepalive CLI for running inside BR200 shell sessions. It manages large datasets under /N/scratch/$USER/..., refreshes them on a recurring scheduler, and keeps resumable checkpoint state outside scratch.
This is a best-effort anti-purge tool. It reduces risk for scratch datasets; it does not make scratch archival.
This package is experimental and provided for experimentation only.
- use it entirely at your own risk
- you are solely responsible for any loss of data, missed refreshes, deletion, corruption, or other consequences arising from use or non-use of this package
- it is not meant for production or real-world operational use
- it is not guaranteed to comply with the policies, terms, or operating expectations of any HPC provider
- it is not an endorsed IU, UITS, or BR200 workflow
- it is not a production retention system
- it is not intended to override, defeat, or work around the normal lifecycle of temporary scratch storage
- scratch storage is temporary and may be deleted by the provider at any time under site policy
For BR200 specifically, treat this package as an experiment rather than an endorsed workflow. If IU, UITS, or BR200 administrators indicate that this usage is not allowed, do not use it. If there is any uncertainty, ask Research Technologies before using it.
This package is intended to stay conservative on BR200:
- the
br200profile enforces a minimum refresh cadence of14days - it keeps only one future scheduled refresh job in the chain
- recurring runs use a small request on
general - it should not be used to evade, bypass, or test the limits of explicit IU or BR200 storage policy
If IU or BR200 admins tell you not to use this workflow, stop using it immediately.
Use of BR200 and other IU resources remains subject to IU and UITS policy. This repository does not grant permission to retain scratch data longer than IU intends, and it should not be relied on as a loophole, workaround, or entitlement.
- registers large datasets under your BR200 scratch space
- keeps a
keep-untilpolicy per dataset - runs metadata-oriented refreshes, not bytewise rereads
- checkpoints partial refresh progress so the next run resumes instead of starting over
- stores logs, registry state, and checkpoint files outside scratch
- installs a recurring scheduler entry for the current BR200 user
- it does not make scratch permanent
- it does not archive to Slate, Slate-Project, or SDA
- it does not run from your laptop
- it does not require or use a personal SSH alias
- it does not redownload missing data
From inside BR200:
python -m pip install br-scratch-keepaliveOr from a cloned repo:
python -m pip install .python -m pip install .
scratch-keepalive init --profile br200
scratch-keepalive add \
--name mr-rate \
--path /N/scratch/$USER/datasets/Forithmus/MR-RATE \
--keep-until 2026-07-31
scratch-keepalive refresh --name mr-rate
scratch-keepalive install-cron
scratch-keepalive status --name mr-rate- Log into BR200 normally.
- Install the package into your BR200 Python environment.
- Run
scratch-keepalive init --profile br200. - Add one or more datasets under
/N/scratch/$USER/.... - Run one manual refresh to verify permissions and state layout.
- Install the recurring scheduler entry.
- Use
statusanddoctorto inspect health.
scratch-keepalive init
scratch-keepalive add
scratch-keepalive list
scratch-keepalive status
scratch-keepalive refresh
scratch-keepalive extend
scratch-keepalive enable
scratch-keepalive disable
scratch-keepalive remove
scratch-keepalive install-cron
scratch-keepalive uninstall-cron
scratch-keepalive doctor
scratch-keepalive repair
The BR200 profile keeps control-plane state outside scratch:
- registry: persistent dataset state
- checkpoints: resumable partial-refresh state
- logs: per-run refresh logs
- sentinel: a small tool-owned file in the dataset root
Refreshes are split into deterministic units. If a refresh run fails or times out:
- completed units stay recorded in checkpoint state
- remaining units are retried on the next run
- the checkpoint is deleted only after the full dataset refresh completes
Public package name:
- package:
br-scratch-keepalive - CLI command:
scratch-keepalive
- Run this from inside BR200, not from your laptop.
- The tool does not rely on a local SSH alias like
br200. - Default recurring cadence is every 14 days.
- The
br200profile will not allow a cadence below 14 days. - Default recurring job request is
general,1 CPU,2G,2:00:00. - Logs and checkpoint state live outside scratch.
- When
scrontabis disabled on BR200,install-cronfalls back to a self-resubmitting Slurm job.