From 6f3a4954c4dc1242fe0e426ce0f79c03a583f13b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 14 Nov 2025 11:17:47 +0100 Subject: [PATCH] add icrc-sync --- icrc-sync | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 icrc-sync 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