Skip to content
Getting Started

Quick Start & Installation

Install the self-contained rship binary, connect a cloud remote, and run your first crash-resumable transfer in minutes.

rship ships as a single self-contained native binary and as a modular, feature-gated Rust SDK crate.

Installation#

Install the latest prebuilt binary cleanly via the universal installer script (automatically resolves the latest version from GitHub Releases, detects your OS/architecture and libc — using gnu on Linux hosts with glibc >= 2.28 and static musl on Alpine/older systems — and verifies SHA256SUMS.txt), or download an archive manually for Linux glibc ≥ 2.28 (x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu), Linux static musl (x86_64-unknown-linux-musl, aarch64-unknown-linux-musl), macOS (aarch64-apple-darwin, x86_64-apple-darwin), or Windows (x86_64-pc-windows-msvc).

# Resolves latest GitHub release, auto-detects gnu (glibc >= 2.28) vs musl & verifies SHA256SUMS.txt
curl -fsSL https://hua0512.github.io/rship/install.sh | sh

# Optional: pin a version, libc (gnu|musl), or custom directory
# curl -fsSL https://hua0512.github.io/rship/install.sh \
#   | RSHIP_VERSION=v0.1.1 RSHIP_LIBC=musl RSHIP_INSTALL_DIR=/usr/local/bin sh

Connect a Remote#

Already using rclone? Jump to Migrating from rclone to import 8 cloud backends in a single command (rship config import-rclone), or authorize a backend directly (see 5-minute Google Drive OAuth setup, S3 / R2 12 presets, or Dropbox App Console for obtaining credentials):

bash
# Google Drive (Desktop OAuth2 PKCE loopback)
rship auth gdrive gdrive --client-id <CLIENT_ID> --client-secret <CLIENT_SECRET>

# Cloudflare R2 / AWS S3 / MinIO (12 presets built in)
rship auth s3 r2 \
  --provider r2 \
  --bucket my-backups \
  --region auto \
  --endpoint https://<ACCOUNT_ID>.r2.cloudflarestorage.com \
  --access-key-id <AK> \
  --secret-access-key <SK>

# SSH / SFTP
rship auth sftp vps --host 10.0.0.5 --user deploy --key-file ~/.ssh/id_ed25519

# Zero-knowledge STREAM OAE2 encrypted vault wrapping any backend
rship auth crypt vault --target r2:encrypted-vault --password "strong-passphrase"

# Verify connectivity & inspect storage quota
rship config test r2
rship about r2:

Need a guided config generator? Try the interactive Provider Composer.

Run Your First Crash-Resumable Transfer#

bash
# Minimal first copy (preview first with --dry-run, then run)
rship copy ./photos gdrive:backups/photos --dry-run
rship copy ./photos gdrive:backups/photos

# Tuned transfer with Falcon adaptive concurrency, bandwidth cap, and 16 MiB RAM budget
rship copy ./photos gdrive:backups/photos --adaptive --bwlimit 20M --max-buffer-mem 16M

# Mirror sync with ordered filters, size/age bounds, and delete circuit breaker
rship sync ./workspace r2:workspace --filter-from ./rules.txt --min-size 1K --max-age 30d --max-delete 100

# Zero-bandwidth server-side copy & rename on the same cloud
rship copyto r2:backups/a.bin r2:backups/b.bin

# Safe Three-Tree bidirectional sync (default: keep-both zero-data-loss conflicts)
rship bisync ./notes gdrive:notes --conflict-strategy keep-both

# Concurrent read-only integrity check (size + common hash)
rship check ./photos gdrive:backups/photos --checkers 16

Interrupt & Resume Safely#

Pressing Ctrl+C (SIGINT) or sending SIGTERM cancels in-flight streams cleanly, flushes the SQLite WAL journal, preserves active multipart/resumable sessions, and exits 130 with a ready-to-run resume command:

bash
# List recent jobs and active resumable sessions
rship status

# Resume with all original persisted flags & filters intact
rship resume <job-id>

# Garbage-collect abandoned remote multipart/resumable staging sessions
rship gc

Enable Shell Completions#

bash
# Bash / Zsh / Fish / PowerShell / Elvish
rship completions bash > ~/.local/share/bash-completion/completions/rship
rship completions zsh > ~/.zfunc/_rship
rship completions fish > ~/.config/fish/completions/rship.fish
# PowerShell: append to $PROFILE (run `New-Item -Force $PROFILE` first if missing)
rship completions powershell >> $PROFILE

Running on a headless VPS or Docker container? See Headless VPS, Docker & Keyring, explore Bidirectional Sync (bisync), or check Configuration & Troubleshooting.