sc-sync

Solid

rsync gitignored files between a VPS and a local machine over Tailscale, for a repo checked out (mirrored path) on both. Two directions: vps-local and local-vps, selected by SYNC_ROLE crossed with the requested direction (never by sniffing hostname). Always dry-run first, --apply to actually copy. Trigger on /sc-sync, 'sync vps to local', 'sync local to vps', 'tailscale sync', 'gitignored files between machines'.

AI & Automation 14 stars 4 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
39
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /sc-sync — Gitignored-file sync over Tailscale ## Why this exists A repo is checked out on two machines (say, a VPS and a laptop). `.gitignore` deliberately keeps some files out of git — local notes, generated docs, scratch config — so they never travel with `git push` / `git pull`. Plain SSH `scp`/`rsync` between the two kept failing (NAT, dynamic IP, firewall...); Tailscale is confirmed working on both ends. This skill wraps `rsync` over the Tailscale interface so those gitignored files can move in either direction without inventing a new transport. It deliberately does **not** try to guess which machine it's running on via `hostname` — that leaks a real, personally-identifying hostname into logs and breaks the moment either machine is renamed or reimaged. Instead the invoking side declares itself explicitly via `SYNC_ROLE`. ## Requirements - Both machines joined to the **same tailnet** (`tailscale status` shows both). - The repo is checked out at the **same absolute path** on both machines (the default `SYNC_REMOTE_PATH` assumes this — override it if the layout differs). - `rsync` installed on both machines. - **The non-invoking side needs inbound SSH reachable** over Tailscale — rsync tunnels through SSH by default. That means: - Linux/macOS: `sshd` running, reachable from the tailnet. - **Windows: OpenSSH Server is NOT on by default.** You must explicitly enable "OpenSSH Server" (Settings → Optional Features, or `Add-WindowsCapability -Online -Name...

Details

Author
rahmanef63
Repository
rahmanef63/si-coder-agent
Created
6 months ago
Last Updated
2 weeks ago
Language
JavaScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category