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

View File

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

View File

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