From 5eeab95c8429979909733265de829352a94e9862 Mon Sep 17 00:00:00 2001 From: Erik Westrup Date: Mon, 17 Jan 2022 15:53:17 +0100 Subject: [PATCH] Create backup of existing config files on install --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6bb329d..f864c99 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ etc/restic/b2_env.sh etc/restic/b2_pw.txt: # | means that dependencies are order-only i.e. only created if they don't already exist. install-conf: | $(SRCS_CONF) install -d $(DEST_CONF) - install -m 0600 $(SRCS_CONF) $(DEST_CONF) + install -b -m 0600 $(SRCS_CONF) $(DEST_CONF) $(RM) etc/restic/b2_env.sh etc/restic/b2_pw.txt # target: install-systemd - Install systemd timer and service files.