Saturday, 18 August 2012

how to sync folders recursively?


hello, not programming, scripting; wrote bash script syncs 2 folders, , set folder action. here sample:

echo "syncing server local"
rsync -avru -progress --delete local_source target_server
echo "operation complete"

have associated folder, , syncs subfolders already, since told rsync sync recursively, can run anytime there change in subfolder of local_source ????

of course associate folder action every single subfolder, there hundreds. , new folders added , deleted everyday, wouldn't want associate script every time make new folder. anyway around this?

i'm proficient programming can use scripts or automator, anything, ideas welcome
 

wirelessly posted (mozilla/5.0 (iphone; cpu iphone os 5_0_1 mac os x) applewebkit/534.46 (khtml, gecko) version/5.1 mobile/9a405 safari/7534.48.3)

use launchd
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment