summaryrefslogtreecommitdiffstats
path: root/.local/bin/synchdd
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/synchdd')
-rwxr-xr-x.local/bin/synchdd18
1 files changed, 18 insertions, 0 deletions
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