From e43b7fbb45911874f759e20134bb9a6eacead138 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 15 Mar 2023 23:06:58 +0100 Subject: syncup --- .local/bin/synchdd | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to '.local/bin/synchdd') diff --git a/.local/bin/synchdd b/.local/bin/synchdd index d89de0f..2486f6e 100755 --- a/.local/bin/synchdd +++ b/.local/bin/synchdd @@ -1,18 +1,22 @@ #!/bin/csh -e -[ -d $HOME/hdd ] || exit 1 +dest="$HOME"/exthdd/ + +[ -d $dest ] || exit 1 # books -rsync -avh --delete-after \ - $HOME/books $HOME/hdd +rsync -avhk --delete-after \ + $HOME/books $dest # docs -rsync -avh --delete-after \ +rsync -avhk --delete-after \ --exclude 'dotfiles-*' \ --exclude 'conffiles-bsd' \ - --exclude 'phone_mu' \ - $HOME/docs $HOME/hdd + $HOME/docs $dest # mu rsync -avhk --delete-after \ - $HOME/mu $HOME/hdd + $HOME/mu $dest # pics -rsync -avh --delete-after \ - $HOME/pics $HOME/hdd +rsync -avhk --delete-after \ + $HOME/pics $dest +# vids +rsync -avhk --delete-after \ + $HOME/vids $dest -- cgit v1.2.3