sync (280B)
1 #!/bin/sh -e 2 for host in s1 s2; do 3 openrsync --rsync-path='doas openrsync' -a --del \ 4 $host:/home ~/sync/$host/ 5 openrsync --exclude prv -a --del \ 6 ~/sync/$host/ w1:backups/$host/ 2>&1 | 7 grep -v 'skipping excluded file' || true 8 done 9 openrsync -a ~/sync/s0/ w1:backups/s0/