Improve paths / add cal backup

This commit is contained in:
Thomas Avé 2024-04-18 10:57:22 +02:00
parent d2bf13d6f6
commit f692ed32b0
2 changed files with 35 additions and 28 deletions
.config
scripts
zsh

View File

@ -30,10 +30,15 @@ echo "$ZFS_PASSPHRASE" | ssh vault /home/server/Storage/Thomas/Scripts/Mount/bor
echo -e '\n\n\n'
echo "Running dotfiles Backups"
borg create -s --progress \
--exclude /home/server/.dotfiles/zsh/secrets.sh\
10.4.0.1:Storage/Thomas/Borg/Dotfiles::'{hostname}-{now}' \
/home/server/.dotfiles\
echo -e '\n\n\n'
echo "Running Calendar Backups"
borg create -s --progress \
10.4.0.1:Storage/Thomas/Borg/Calendar::'{hostname}-{now}' \
/home/server/Containers/cal.thomasave.be\
echo -e '\n\n\n'
echo "Running Caddy Backups"
borg create -s --progress \
@ -156,6 +161,7 @@ borg create -s --progress \
10.4.0.1:Storage/Thomas/Borg/Cloud::'{hostname}-{now}' \
/home/server/Containers/pw.thomasave.be\
/home/server/Containers/robbertave.com\
/home/server/Containers/cal.thomasave.be\
/home/server/Containers/auth.thomasave.be\
/home/server/Containers/git.thomasave.be\
/home/server/Containers/Boaty \
@ -193,5 +199,6 @@ borg create -s --progress \
/home/server/Containers/auth.thomasave.be\
/home/server/Containers/Boaty \
/home/server/Containers/Caddy \
/home/server/Containers/cal.thomasave.be\
/home/server/Containers/stats.thomasave.be \
/home/server/Storage/Niels \

View File

@ -114,35 +114,35 @@ function zvm_after_init() {
PATHS=""
for i in \
~/.config/waybar \
~/.config/xmodmap \
~/.config/zsh \
~/.config/tmux \
~/.config/vim \
~/.config/qtile \
~/.config/rofi \
~/.config/scripts \
~/.config/nvim \
~/.config/picom \
~/.config/polybar \
~/.config/awesome \
~/.config/dunst \
~/.config/firefox \
~/.config/git \
~/.config/gitui \
~/.config/helix \
~/.config/hypr \
~/.config/i3 \
~/.config/kitty \
~/.config/mpv \
~/.config/alacritty \
~/Workspace \
~/Containers \
~/Storage/Shared \
~/Storage/Thomas; do
~/.config/waybar/ \
~/.config/xmodmap/ \
~/.config/zsh/ \
~/.config/tmux/ \
~/.config/vim/ \
~/.config/qtile/ \
~/.config/rofi/ \
~/.config/scripts/ \
~/.config/nvim/ \
~/.config/picom/ \
~/.config/polybar/ \
~/.config/awesome/ \
~/.config/dunst/ \
~/.config/firefox/ \
~/.config/git/ \
~/.config/gitui/ \
~/.config/helix/ \
~/.config/hypr/ \
~/.config/i3/ \
~/.config/kitty/ \
~/.config/mpv/ \
~/.config/alacritty/ \
~/Workspace/ \
~/Containers/ \
~/Storage/Shared/ \
~/Storage/Thomas/ ; do
if [ -d $i ]; then
PATHS="$PATHS\n$i/"
PATHS="$PATHS\n$i"
PATHS="$PATHS\n$(fd . $i -t d -d 5)"
fi
done