From 54d4642227deebfb4b1cc2ccd79662e4cfcb51f7 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 27 Jun 2022 00:05:36 +0200 Subject: Update --- .local/bin/synchdd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .local/bin/synchdd diff --git a/.local/bin/synchdd b/.local/bin/synchdd new file mode 100755 index 0000000..d89de0f --- /dev/null +++ b/.local/bin/synchdd @@ -0,0 +1,18 @@ +#!/bin/csh -e + +[ -d $HOME/hdd ] || exit 1 +# books +rsync -avh --delete-after \ + $HOME/books $HOME/hdd +# docs +rsync -avh --delete-after \ + --exclude 'dotfiles-*' \ + --exclude 'conffiles-bsd' \ + --exclude 'phone_mu' \ + $HOME/docs $HOME/hdd +# mu +rsync -avhk --delete-after \ + $HOME/mu $HOME/hdd +# pics +rsync -avh --delete-after \ + $HOME/pics $HOME/hdd -- cgit v1.2.3