enhance file structure for backups

This commit is contained in:
Yuri Zamyatin 2025-05-12 07:24:42 +00:00
parent 876573390b
commit a49452d717
2 changed files with 9 additions and 15 deletions

View File

@ -7,14 +7,14 @@ PACKAGES=(
# system
linux base linux-firmware lvm2 sudo polkit # base
pulseaudio pulseaudio-bluetooth bluez bluez-utils networkmanager udisks2 # device management
openssh man-db restic htop # admin utils
openssh man-db htop # admin utils
# generic runtime
nodejs dash
# cli programs
vifm vim less # navigation & editors
shellcheck # shell scripting
just shellcheck # shell scripting
hugo miniserve neomutt translate-shell # www
gnupg pass pass-otp # crypt
jq libqalculate imagemagick # data processing

View File

@ -27,25 +27,19 @@ done < config/workspace.conf
####### file structure #########
USER_DIRS=(
##### xdg #####
~/.config # bkp=weak
~/.local/bin # bkp=weak
~/.local/share # bkp=weak
~/.config # bkp
~/.local/bin # bkp
~/.local/share # bkp
~/.local/state
~/.cache
# app
~/.local/state/sway
################
##### user #####
# core knowledge base
~/know # bkp=true,roam=true
# large blobs for knowledge base
~/know-lfs # Large blobs for knowledge base. bkp=weak
# temp files with manual bulk cleanup
~/tmp
# downloads
~/dl # bkp=weak
# development - external vcs, tons of deps, etc.
~/dev # bkp=weak
~/know # knowledge base; roam (git)
~/dev # projects, version controlled; roam (git)
~/lfs # large files
~/tmp # temp files, maybe downloads
################
)
mkdir -p "${USER_DIRS[@]}"