diff --git a/icrc-sync b/icrc-sync new file mode 100755 index 0000000..4859aa7 --- /dev/null +++ b/icrc-sync @@ -0,0 +1,10 @@ +#!/bin/sh + +dir=/mnt/c/Users/A090964/vcs/ +repolist=$(ssh icrcnb "cd $dir; ls -1") +echo $repolist + +cd ~/vcs +for repo in $repolist; do + rsync -av --delete icrcnb:${dir}/${repo}/ ~/vcs/icrc-${repo} +done