Skip to content
shamblashiniPublic

About

TUI utility that mirrors a Cloudflare R2 bucket to a local directory on a schedule.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sycorax

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.

Build

Requires Rust 1.85+ (edition 2024).

cargo build --release

The 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.

Install

There is no installer. Copy the binary somewhere on your PATH:

  • Linux: install -m 755 target/release/sycorax ~/.local/bin/sycorax
  • Windows: copy sycorax.exe to a stable directory (e.g. %LOCALAPPDATA%\Programs\sycorax\) and add it to PATH. The installed scheduled task uses an absolute path to the binary, so don't move the EXE after running setup — re-run sycorax setup if you do.

Linux scheduling backends

sycorax will try, in order:

  1. systemd user timer (preferred; works on any modern systemd distro)
  2. cron — requires the crontab binary
    • Arch: sudo pacman -S cronie && sudo systemctl enable --now cronie
    • Debian/Ubuntu: sudo apt install cron

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.

Linux credential storage

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.

Windows scheduling

Uses Task Scheduler (schtasks.exe) — built into every Windows install. Credentials go to Windows Credential Manager.

Usage

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, exit

TUI keys

Main screen:

  • b — back up now
  • s — install scheduled job
  • x — remove scheduled job
  • e — re-run setup wizard
  • r — refresh status
  • q / Esc — quit

Wizard text fields support Ctrl+V and right-click paste.

Behavior

  • 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.

File locations

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

About

TUI utility that mirrors a Cloudflare R2 bucket to a local directory on a schedule.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages