-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsync.sh
More file actions
15 lines (15 loc) · 749 Bytes
/
sync.sh
File metadata and controls
15 lines (15 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
echo "Sending to mur"
rsync --delete -avzhe ssh ~/catkin_tools_ws/src rosmatch@mur:~/catkin_tools_ws/
echo "Sending to miranda"
rsync --delete -avzhe ssh ~/catkin_tools_ws/src rosmatch@miranda:~/catkin_tools_ws/
#echo "Sending to master"
#rsync --delete -avzhe ssh ~/catkin_tools_ws/src rosmatch@rosmaster:~/catkin_tools_ws/
while inotifywait -r -e modify,create,delete,move ~/catkin_tools_ws/src; do
echo "Sending to mur"
rsync --delete -avzhe ssh ~/catkin_tools_ws/src rosmatch@mur:~/catkin_tools_ws/
echo "Sending to miranda"
rsync --delete -avzhe ssh ~/catkin_tools_ws/src rosmatch@miranda:~/catkin_tools_ws/
#echo "Sending to master"
#rsync --delete -avzhe ssh ~/catkin_tools_ws/src rosmatch@rosmaster:~/catkin_tools_ws/
done