TUI utility that mirrors a Cloudflare R2 bucket to a local directory on a schedule. Cross-platform (Linux, Windows). On first run it asks for R2 credentials, a destination path, and a frequency, then installs a scheduled job that backs up new objects automatically.
Requires Rust 1.85+ (edition 2024).
cargo build --releaseThe binary lands at target/release/sycorax (or sycorax.exe on Windows).
Always ship --release, not debug builds — smaller, faster, and far less likely
to be flagged by Windows Defender.
There is no installer. Copy the binary somewhere on your PATH:
- Linux:
install -m 755 target/release/sycorax ~/.local/bin/sycorax - Windows: copy
sycorax.exeto a stable directory (e.g.%LOCALAPPDATA%\Programs\sycorax\) and add it toPATH. The installed scheduled task uses an absolute path to the binary, so don't move the EXE after running setup — re-runsycorax setupif you do.
sycorax will try, in order:
- systemd user timer (preferred; works on any modern systemd distro)
- cron — requires the
crontabbinary- Arch:
sudo pacman -S cronie && sudo systemctl enable --now cronie - Debian/Ubuntu:
sudo apt install cron
- Arch:
If both are unavailable, the wizard still saves your config; you can install a
scheduler later and press s from the main screen to retry.
R2 keys are stored in the OS keychain via the Secret Service API. You need
gnome-keyring, kwallet, or another Secret Service implementation running.
GNOME / KDE / XFCE provide this out of the box; minimal WMs may not.
Uses Task Scheduler (schtasks.exe) — built into every Windows install.
Credentials go to Windows Credential Manager.
sycorax # TUI; runs the setup wizard on first launch
sycorax run # one-shot backup, non-interactive (used by cron / Task Scheduler)
sycorax setup # re-run the setup wizard
sycorax schedule # (re)install the scheduled job from the saved config
sycorax unschedule # remove the scheduled job
sycorax status # print config + last-run summary, exitMain screen:
b— back up nows— install scheduled jobx— remove scheduled jobe— re-run setup wizardr— refresh statusq/Esc— quit
Wizard text fields support Ctrl+V and right-click paste.
- Lists every object in the configured bucket (under the optional prefix) and downloads each one whose corresponding local file does not yet exist.
- Once an object is on disk it is never re-downloaded, even if the version in R2 changes. This is intentional — sycorax is for keeping a local archive, not a live mirror.
- Empty "directory placeholder" objects (keys ending in
/) are materialized as directories. - Concurrent downloads are capped at 4. A lock file in the cache directory prevents an on-demand backup and a scheduled run from colliding.
| Purpose | Linux | Windows |
|---|---|---|
| Config | ~/.config/sycorax/config.toml |
%APPDATA%\sycorax\sycorax\config\ |
| Last-run | ~/.local/share/sycorax/state.toml |
%APPDATA%\sycorax\sycorax\data\ |
| Log + lock | ~/.cache/sycorax/ |
%LOCALAPPDATA%\sycorax\sycorax\cache\ |
| Secrets | OS keychain (Secret Service) | Windows Credential Manager |