Last active
December 7, 2019 02:41
-
-
Save JamesHopbourn/a2f128537710cdafe70cd70a521b5f39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
fswatch ~/Desktop/1 | while read file | |
do | |
rsync -trl --delete ~/Desktop/1 ~/Desktop/2 | |
now=$(date +"%T") | |
echo "⚠️ $now ${file} synced" | |
done | |
#https://imqsc.xyz/2018/10/16/fswatch-and-rsync/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment