feat: add Windows setup and sync scripts #4

Merged
MangoPig merged 3 commits from opencode-agent/JingTian-Rclone:feature/windows-setup into main 2026-02-13 12:48:24 +01:00
Member

Summary

Adds the Windows client setup script and sync script for the JingTian rclone sync system.

New Files

windows/setup.ps1 - Setup Script

Automated setup script that:

  • Step 1: Checks/installs Git (downloads from GitHub if not present)
  • Step 2: Checks/installs rclone (downloads from rclone.org if not present)
  • Step 3: Auto-detects BenjaminTeam folder or prompts user
  • Step 4: Copies SSH key and tests connection to server
  • Step 5: Configures rclone with SFTP remote
  • Step 6: Sets up logging directory
  • Step 7: Creates Windows Scheduled Task (default: every 5 minutes)

Usage:

# Run as Administrator
.\setup.ps1

# Or with custom settings
.\setup.ps1 -LocalPath "D:\Work\BenjaminTeam" -SyncInterval 10

windows/sync.ps1 - Sync Script

Called by the scheduled task or manually:

  • Phase 1: One-way sync (Windows → Server) for main folders
  • Phase 2: Bidirectional sync using rclone bisync for _LLM_Sync

Features:

  • Auto-detects rclone and BenjaminTeam paths
  • Comprehensive logging to %LOCALAPPDATA%\JingTian\logs
  • Supports verbose output with -VerboseOutput flag

config/rclone.conf.template

Reference template showing the rclone configuration structure.

Sync Behavior

Folder Direction Method
Main folders (Admin, Client, IP, etc.) Windows → Server rclone sync
_LLM_Sync Bidirectional rclone bisync

Testing

Ready to test on the Azure Windows VM at 4.223.99.30. The setup script will:

  1. Find the existing BenjaminTeam folder
  2. Use the SSH key from windows/rclone-key
  3. Connect to the Ubuntu server at 20.240.140.78
## Summary Adds the Windows client setup script and sync script for the JingTian rclone sync system. ## New Files ### `windows/setup.ps1` - Setup Script Automated setup script that: - **Step 1:** Checks/installs Git (downloads from GitHub if not present) - **Step 2:** Checks/installs rclone (downloads from rclone.org if not present) - **Step 3:** Auto-detects BenjaminTeam folder or prompts user - **Step 4:** Copies SSH key and tests connection to server - **Step 5:** Configures rclone with SFTP remote - **Step 6:** Sets up logging directory - **Step 7:** Creates Windows Scheduled Task (default: every 5 minutes) **Usage:** ```powershell # Run as Administrator .\setup.ps1 # Or with custom settings .\setup.ps1 -LocalPath "D:\Work\BenjaminTeam" -SyncInterval 10 ``` ### `windows/sync.ps1` - Sync Script Called by the scheduled task or manually: - **Phase 1:** One-way sync (Windows → Server) for main folders - **Phase 2:** Bidirectional sync using `rclone bisync` for `_LLM_Sync` **Features:** - Auto-detects rclone and BenjaminTeam paths - Comprehensive logging to `%LOCALAPPDATA%\JingTian\logs` - Supports verbose output with `-VerboseOutput` flag ### `config/rclone.conf.template` Reference template showing the rclone configuration structure. ## Sync Behavior | Folder | Direction | Method | |--------|-----------|--------| | Main folders (Admin, Client, IP, etc.) | Windows → Server | `rclone sync` | | `_LLM_Sync` | Bidirectional | `rclone bisync` | ## Testing Ready to test on the Azure Windows VM at `4.223.99.30`. The setup script will: 1. Find the existing `BenjaminTeam` folder 2. Use the SSH key from `windows/rclone-key` 3. Connect to the Ubuntu server at `20.240.140.78`
opencode-agent added 3 commits 2026-02-13 12:17:45 +01:00
- Checks/installs Git and rclone automatically
- Auto-detects BenjaminTeam folder or prompts user
- Copies SSH key and tests connection
- Configures rclone with SFTP remote
- Creates Windows Scheduled Task for periodic sync (default: 5 min)
- Phase 1: One-way sync (Windows -> Server) for main folders
- Phase 2: Bidirectional sync using rclone bisync for _LLM_Sync
- Auto-detects rclone and BenjaminTeam folder paths
- Comprehensive logging to %LOCALAPPDATA%\JingTian\logs
- Supports verbose output with -VerboseOutput flag
MangoPig merged commit fea6996041 into main 2026-02-13 12:48:24 +01:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Goko/JingTian-Rclone#4