Hello, not exactly programming, but scripting; I wrote an bash script that syncs two folders, and set it as a folder action. here is a sample:
echo "syncing from server to local"
rsync -avru -progress --delete LOCAL_SOURCE TARGET_SERVER
echo "operation complete"
I have it associated with a folder, and it syncs all subfolders already, since i told rsync to sync recursively, however can i get this to run anytime there is a change in any subfolder of LOCAL_SOURCE ????
I could of course associate the folder action with every single subfolder, but there are hundreds. and new folders are added and deleted everyday, I wouldn't want to associate the script every time I make a new folder. anyway to get around this?
i'm fairly proficient with programming so I can use scripts or automator, just about anything, so ALL ideas are welcome
echo "syncing from server to local"
rsync -avru -progress --delete LOCAL_SOURCE TARGET_SERVER
echo "operation complete"
I have it associated with a folder, and it syncs all subfolders already, since i told rsync to sync recursively, however can i get this to run anytime there is a change in any subfolder of LOCAL_SOURCE ????
I could of course associate the folder action with every single subfolder, but there are hundreds. and new folders are added and deleted everyday, I wouldn't want to associate the script every time I make a new folder. anyway to get around this?
i'm fairly proficient with programming so I can use scripts or automator, just about anything, so ALL ideas are welcome