diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 59 |
1 files changed, 10 insertions, 49 deletions
@@ -4,7 +4,7 @@ Sync any two paths with each other & cloud backup. Uses `unison` to sync the paths, rclone to sync to a cloud provider. - + ## Setup ```bash @@ -23,7 +23,6 @@ just sync-cloud # To cloud just status # Check ``` - ## Commands - `setup` - Create directories @@ -32,63 +31,25 @@ just status # Check - `sync-cloud` - Cloud backup (rclone) - `status` - Show state -## Windows (Git Bash) +## Windows -Local sync requires both drives accessible. Cloud sync works from either drive. +For cloud backup from Windows, use rclone directly: ### Install -- Git for Windows: https://git-scm.com/download/win -- just: `scoop install just` / `choco install just` -- rclone: https://rclone.org/downloads/ -- unison: https://github.com/bcpierce00/unison/releases +rclone for Windows: https://rclone.org/downloads/ ### Setup -```bash -rclone config -# Edit justfile paths for your Windows setup (Git Bash uses /c/ for C:\) -``` - -### Use - -```bash -just sync-cloud # SOURCE → cloud -just sync-cloud-from-target # TARGET → cloud +```powershell +rclone config # Configure your cloud remote ``` ---- - -## Windows (WSL) with usbipd-win - -```bash -# 1. Install usbipd-win (Admin PowerShell) -# Download from https://github.com/dorssel/usbipd-win/releases/latest - -# 2. List devices -usbipd list -# Note BUSID (e.g., 1-20) - -# 3. Attach (Admin PowerShell) -usbipd bind --busid 1-20 -usbipd attach --wsl --busid 1-20 -wsl # Start admin WSL - -# 4. In admin WSL -sudo mkdir /mnt/drive1 -sudo mount /dev/sdb1 /mnt/drive1 # Replace sdb1 - -# 5. Configure & run -# Edit justfile: SOURCE="/mnt/drive1" -just sync-cloud - -# Cleanup (optional) -sudo umount /mnt/drive1 -# sudo umount /mnt/drive2 # If using second drive +### Run -# Detach & unbind (required before removing drive) -usbipd detach --busid 1-20 -usbipd unbind --busid 1-20 +```powershell +# Replace paths with your Windows drive letter and configured remote name +rclone sync -P "H:\usync" "your-remote:/usync" ``` ## Configure |
