From 716f682cf43919230649082f9a4fc26ce32e8c24 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 6 Oct 2020 17:43:07 -0700 Subject: linux: create service for backing up I want to backup my $HOME to the nas using restic. --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c1301b4..c1ad336 100644 --- a/Makefile +++ b/Makefile @@ -83,10 +83,18 @@ endif .PHONY: redshift redshift: - $(PACMAN )redshift + $(PACMAN) redshift $(LN) $(PWD)/config/redshift.conf $(HOME)/.config/redshift.conf @systemctl --user enable redshift +.PHONY: resticcfg +resticcfg: + @mkdir -p $(HOME)/.config/restic + $(PACMAN) restic + $(LN) $(PWD)/config/systemd/user/backup.service $(HOME)/.config/systemd/user/backup.service + @systemctl --user daemon-reload + @systemctl --user enable backup + .PHONY: tmux tmux: ifeq ($(CURRENT_OS),Linux) @@ -106,7 +114,7 @@ clean-dead: install: $(HOME)/workspace $(HOME)/.ssh/authorized_keys git tmux emacs .PHONY: install-linux -install-linux: redshift desktop +install-linux: redshift desktop resticcfg modmap .PHONY: install-darwin install-darwin: screenshots -- cgit 1.4.1