commit 02f736506bc5f30feb07c02446f3a06da7e28684 parent 89ade2d5ba13896923342cfd3176d22fae9e5d5c author: nathanael <nathanael@dalliard.ch> date: Sun, 19 Oct 2025 08:56:10 +0000 s0: sync -> backup diffstat:
| A | s0/dotfiles/bin/backup | | | 9 | +++++++++ |
| D | s0/dotfiles/bin/sync | | | 9 | --------- |
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/s0/dotfiles/bin/backup b/s0/dotfiles/bin/backup @@ -0,0 +1,9 @@ +#!/bin/sh -e +for host in s1 s2 s3; do + openrsync --rsync-path='doas openrsync' -a --del \ + $host:/home ~/backups/$host/ + openrsync --exclude prv -a --del \ + ~/backups/"$host"/ w1:backups/"$host"/ 2>&1 | + grep -vF 'skipping excluded file' | + grep -vF '**' +done diff --git a/s0/dotfiles/bin/sync b/s0/dotfiles/bin/sync @@ -1,9 +0,0 @@ -#!/bin/sh -e -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 -vF 'skipping excluded file' | - grep -vF '**' -done