summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-06-27 00:05:36 +0200
committerJoe <bousset.rudy@gmail.com>2022-06-27 00:05:36 +0200
commit54d4642227deebfb4b1cc2ccd79662e4cfcb51f7 (patch)
treeb30216ab6e681129c6b4ecf84ef1ab9f900d0be4
parentUpdate (diff)
downloaddotfiles-bsd-54d4642227deebfb4b1cc2ccd79662e4cfcb51f7.tar.gz
dotfiles-bsd-54d4642227deebfb4b1cc2ccd79662e4cfcb51f7.tar.bz2
dotfiles-bsd-54d4642227deebfb4b1cc2ccd79662e4cfcb51f7.tar.xz
dotfiles-bsd-54d4642227deebfb4b1cc2ccd79662e4cfcb51f7.tar.zst
dotfiles-bsd-54d4642227deebfb4b1cc2ccd79662e4cfcb51f7.zip
Update
-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