aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-05-13 14:23:50 -0300
committerEuAndreh <eu@euandre.org>2023-05-13 14:23:50 -0300
commitc80062f8c225ac8fae36e5ff66259443cfadffbf (patch)
treefa5a033e44f9434e5a1a38ddbb3ace6bb16096b4
parentetc/guix/home.scm: Add "tcpdump" package (diff)
downloaddotfiles-c80062f8c225ac8fae36e5ff66259443cfadffbf.tar.gz
dotfiles-c80062f8c225ac8fae36e5ff66259443cfadffbf.tar.xz
Makefile: Add targets for ~/mnt/ FUSE filesystems
-rw-r--r--Makefile11
-rwxr-xr-xbin/backup1
2 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 22bb876..6f7f2a0 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,8 @@ derived-assets = \
$(XDG_DATA_HOME)/common-lisp/source \
$(XDG_DATA_HOME)/euandreh/e.list.txt \
$(HOME)/.ssh \
+ $(HOME)/mnt/suyin/enc \
+ $(HOME)/mnt/crypt/.keep \
$(lisp-images)
@@ -66,6 +68,13 @@ $(XDG_CONFIG_HOME)/xmobar/xmobarrc:
$(HOME)/.ssh:
ln -s $(XDG_CONFIG_HOME)/ssh $@
+$(HOME)/mnt/suyin/enc:
+ sshfs suyin: $(@D)
+
+$(HOME)/mnt/crypt/.keep: $(HOME)/mnt/suyin/enc
+ if [ ! -e $@ ]; then cryfs $? $(@D); fi
+ touch $@
+
$(XDG_DATA_HOME)/common-lisp/source:
ln -s $(SRC)/libre $@
@@ -163,6 +172,8 @@ check: check-shellcheck check-perlcritic check-nixfmt check-fixme \
@cd $(PRIV_CONFIG) && $(MAKE) $@
clean:
+ cryfs-unmount $(HOME)/mnt/crypt
+ fusermount -u $(HOME)/mnt/suyin
rm -rf $(derived-assets)
@cd $(PRIV_CONFIG) && $(MAKE) $@
diff --git a/bin/backup b/bin/backup
index 9826fd4..a6726b1 100755
--- a/bin/backup
+++ b/bin/backup
@@ -108,6 +108,7 @@ run() {
--comment "$COMMENT" \
--exclude "$XDG_CACHE_HOME" \
--exclude ~/Downloads/ \
+ --exclude ~/mnt/ \
--stats \
--compression lzma,9 \
"::{hostname}-{now}-$ARCHIVE_TAG" \