From a49452d7177f510b23ad48e1e7cc2e130126893f Mon Sep 17 00:00:00 2001 From: Yuri Zamyatin Date: Mon, 12 May 2025 07:24:42 +0000 Subject: [PATCH] enhance file structure for backups --- arch-root/install.sh | 4 ++-- arch-user/install.sh | 20 +++++++------------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/arch-root/install.sh b/arch-root/install.sh index 6b45b65..40f7c0d 100755 --- a/arch-root/install.sh +++ b/arch-root/install.sh @@ -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 diff --git a/arch-user/install.sh b/arch-user/install.sh index 79212b3..cd06b61 100755 --- a/arch-user/install.sh +++ b/arch-user/install.sh @@ -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[@]}"