ref: 0d1ffd0046e1dbb1a048ab9d1bc6c0c609298ea2
dir: /syncbv91/
#!/bin/rc -e rfork n if(! sshfs tcp!bv91!8022){ echo ssh failed: $status exit ssh } cd # sd card mtimes are full of lies for(i in m*){ if(! test -d /n/ssh/m) ssh tcp!bv91!8022 ln -s storage/external-1/m m || exit if(! test -d /n/ssh/m/$i) clone -T $i /n/ssh/m/ if not syncab -m $i /n/ssh/m/$i | tee -a /tmp/sync.$pid } syncab /n/ssh/Pictures $home/lib/i | tee -a /tmp/sync.$pid echo proceed? if(! ~ `{read} yes){ echo exiting exit nope } . /tmp/sync.$pid && rm /tmp/sync.$pid