Multiple updates:

add restic to common aliases
update puppet functions/modules
add restic-backup command
This commit is contained in:
Ben Vincent 2025-08-14 19:35:26 +10:00
parent 3b349870d8
commit 60c67eecee
6 changed files with 28 additions and 2 deletions

View File

@ -62,6 +62,8 @@ function! OpenPuppetProfileOrRole(layout)
call add(module_list, 'readarr')
call add(module_list, 'redisha')
call add(module_list, 'sonarr')
call add(module_list, 'vlcluster')
call add(module_list, 'vmcluster')
" Check if the class name starts with 'profiles::' or 'roles::'
if classname =~ '^profiles::'

@ -1 +1 @@
Subproject commit 453bd93cf9a7f203d4ad62f078746a94ffd77020
Subproject commit 140aca8996acf7e16da374be2b6b22fc87b3b8e0

View File

@ -72,7 +72,7 @@ alias ypush="yadm push && yadm push origin master"
# fix commands
alias ipcalc='~/.local/bin/ipcalc -n'
alias mpv="mpv -hwdec=vdpau"
alias ifstat="/usr/bin/ifstat"
alias ifstat="/usr/local/bin/ifstat"
alias snapper="sudo /usr/bin/snapper"
alias ap="~/.local/bin/ansible-playbook"

View File

@ -74,6 +74,10 @@ ncurl() {
curl --netrc-file <(pass show personal/netrc) "$@"
}
export GPG_TTY=$(tty)
export RESTIC_REPOSITORY=s3:https://radosgw.service.consul/restic-personal
export RESTIC_PASSWORD_COMMAND="pass show personal/restic/metabox"
# create function later:
# large image heavy pdf into smaller pdf
# below will:

View File

@ -32,3 +32,9 @@ sudo dnf install -y firefox chromium gimp libreoffice dia shotwell thunderbird i
tmux udiskie upower vifm virt-manager libvirt jpegoptim poppler-utils qpdf alacritty dunst feh i3 i3blocks \
maim network-manager-applet pavucontrol sway swaylock waybar wl-clipboard grim slurp polybar mpc mpd mpv \
ncmpcpp openvpn
# NPM
npm i opencode-ai@latest
ln -s ~/node_modules/.bin/opencode ~/bin/opencode

14
bin/restic-backup Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/bash
export GPG_TTY=$(tty)
export $(pass show personal/radosgw/benvin)
restic backup "$HOME" --exclude-caches --one-file-system \
--exclude '**/.cache' \
--exclude '**/.terraform' \
--exclude '**/.terragrunt-cache' \
--exclude '**/.local/share/containers' \
--exclude '**/go/pkg/mod' \
--exclude '**/Downloads' \
--exclude '**/.thunderbird' \
--exclude '**/backups' \
--exclude '**/Video'