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 # system
linux base linux-firmware lvm2 sudo polkit # base linux base linux-firmware lvm2 sudo polkit # base
pulseaudio pulseaudio-bluetooth bluez bluez-utils networkmanager udisks2 # device management 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 # generic runtime
nodejs dash nodejs dash
# cli programs # cli programs
vifm vim less # navigation & editors vifm vim less # navigation & editors
shellcheck # shell scripting just shellcheck # shell scripting
hugo miniserve neomutt translate-shell # www hugo miniserve neomutt translate-shell # www
gnupg pass pass-otp # crypt gnupg pass pass-otp # crypt
jq libqalculate imagemagick # data processing jq libqalculate imagemagick # data processing

View File

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