commit 047c66488164de02ca53cb374783ecd7ad266b31
parent a6e1e63c8aa4e0c123525caf20381f4af74d9015
author: nathanael <nathanael@dalliard.ch>
date: Sat, 18 Oct 2025 22:01:04 +0000
s0: update bin sync
diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/s0/dotfiles/bin/sync b/s0/dotfiles/bin/sync
@@ -1,10 +1,9 @@
#!/bin/sh -e
-hosts='s1 s2 s3'
-for host in $hosts; do
+for host in s1 s2 s3; do
openrsync --rsync-path='doas openrsync' -a --del \
"$host":/home ~/sync/"$host"/
openrsync --exclude prv -a --del \
~/sync/"$host"/ w1:backups/"$host"/ 2>&1 |
- grep -v "skipping excluded file" |
- grep -v "**"
+ grep -vF 'skipping excluded file' |
+ grep -vF '**'
done