From 18ec9d907f72d95b0eeb255e9b5f35242f2a4d60 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 29 Apr 2021 09:04:46 -0500 Subject: duplicity backup scripts --- deploy.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'deploy.sh') diff --git a/deploy.sh b/deploy.sh index 97ce529..f8b2f32 100755 --- a/deploy.sh +++ b/deploy.sh @@ -11,6 +11,8 @@ xcache="${XDG_CACHE_HOME:-${HOME}/.cache}" xdata="${XDG_DATA_HOME:-${HOME}/.local/share}" xconfig="${XDG_CONFIG_HOME:-${HOME}/.config}" +userbin="$HOME/bin" + # deploy to XDG dirs mkdir -p "${xcache}/zsh" mkdir -p "${xdata}/zsh" @@ -36,6 +38,17 @@ do done cd .. +# deploy to user binaries +cd bin +for f in * +do + if [ -e "$userbin/${f}" ]; then + mv "$userbin/${f}" "../dotfiles-backup/${f}" + fi + ln -sf "$(pwd)/${f}" "$userbin/${f}" +done +cd .. + # install vundle for vim if [ ! -d ~/.vim/bundle/vundle ]; then git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle @@ -58,3 +71,9 @@ if [ ! -e ~/.local/share/fonts/sourcecodepro-nerd ]; then unzip local/SourceCodePro.zip -d ~/.local/share/fonts/sourcecodepro-nerd echo "Run \'fc-cache -v\' to rebuild your font cache" fi +if [ ! -e ~/.config/duplicity/config ]; then + cp local/duplicity-config ~/.config/duplicity/config +fi +if [ ! -e ~/.config/duplicity/excludes ]; then + cp local/duplicity-excludes ~/.config/duplicity/excludes +fi -- cgit v1.2.3