Deterministic dry-run-first directory synchronization.
The current project fleet already covers agent frameworks, music software, games, privacy, sync, mobile, and archival tooling. runesync fills a narrower gap: a small local-first utility that can be audited in one sitting and composed with OpenShark, OpenShield, shell scripts, or other agents.
- No network access.
- No external Rust dependencies.
- Deterministic output where the filesystem allows it.
- Plain text formats that can be reviewed in Git.
- Real unit tests, not placeholder stubs.
Show what would be copied, deleted, or skipped. Never modifies anything.
runesync plan ~/Projects/active /mnt/backup/active
runesync plan ~/Projects/active /mnt/backup/active --deleteRequires --execute flag. Without it, sync refuses to run.
runesync sync ~/Projects/active /mnt/backup/active --execute
runesync sync ~/Projects/active /mnt/backup/active --execute --deleteExit code 0 if identical, 1 if different. Useful in scripts and CI.
runesync check ~/Projects/active /mnt/backup/active| Flag | Effect |
|---|---|
--delete |
Remove files in dest that don't exist in source |
--execute |
Actually perform the sync (required by sync) |
planis always a dry-run — no changes are ever made.syncrequires--executeto make any changes.- Deletions require
--deleteflag. - Symlinks are never followed.
- Output is deterministic (sorted, no timestamps).
- Files are compared by content hash, not just size or mtime.
src/lib.rs— pure functions: scanning, hashing, diffing, planning. No side effects.src/main.rs— CLI parsing, validation, dispatch, and execution. Thin wrapper over lib.tests/integration.rs— integration tests using real temporary directories.
Content comparison uses FNV-1a 64-bit hashing — simple, deterministic, and dependency-free.
- Plan and explicit apply
- Ignore files
- Rename detection
- SSH transport behind a separate adapter
cargo fmt --check
cargo test
cargo run -- --helpLocal commits only. Never push or create remotes without explicit instruction. Do not weaken validation to make a failing test pass.
