Create backup of existing config files on install

This commit is contained in:
Erik Westrup
2022-01-17 15:53:17 +01:00
parent 3e22d8f99d
commit 5eeab95c84

View File

@@ -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.