diff options
author | Joe <bousset.rudy@gmail.com> | 2023-03-15 23:06:58 +0100 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2023-03-15 23:06:58 +0100 |
commit | e43b7fbb45911874f759e20134bb9a6eacead138 (patch) | |
tree | 09a7f4149f3290639025f4f431ccba6e003958b2 /.local/bin/synchdd | |
parent | up (diff) | |
download | dotfiles-bsd-e43b7fbb45911874f759e20134bb9a6eacead138.tar.gz dotfiles-bsd-e43b7fbb45911874f759e20134bb9a6eacead138.tar.bz2 dotfiles-bsd-e43b7fbb45911874f759e20134bb9a6eacead138.tar.xz dotfiles-bsd-e43b7fbb45911874f759e20134bb9a6eacead138.tar.zst dotfiles-bsd-e43b7fbb45911874f759e20134bb9a6eacead138.zip |
syncup
Diffstat (limited to '.local/bin/synchdd')
-rwxr-xr-x | .local/bin/synchdd | 22 |
1 files changed, 13 insertions, 9 deletions
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 |