79171383

Date: 2024-11-08 19:56:50
Score: 2
Natty:
Report link

Thanks to @Brad suggestions, I set up rsync on windows and ssh in my mac. Step by step instructions below:

  1. Install an SSH Server on Your Mac (if it’s not already enabled):
  1. Install rync
  2. Create rsync script in Windows. My final script looks something like this.

#!/bin/bash

# Define source and destination paths
SOURCE="/c/path/to/windowsdev/"  # Adjust this path to your specific source folder on Windows
DESTINATION="user@host:/path/to/macdev/"  # Use your Mac's username and host, and the correct path

# Run rsync to sync changes, excluding specific directories
rsync -avz --delete \
--exclude '.idea/' \
--exclude '.dart_tool/' \
--exclude 'build/' \
"$SOURCE" "$DESTINATION"

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Brad
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Robert