From 1271add28c5d85b0d1f07e602255990fe8cfc8bf Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 3 Nov 2019 03:28:04 -0600 Subject: gn: Add gitea backup timer --- gn/services/gitea-dump.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 gn/services/gitea-dump.service (limited to 'gn/services/gitea-dump.service') diff --git a/gn/services/gitea-dump.service b/gn/services/gitea-dump.service new file mode 100644 index 0000000..b9b310d --- /dev/null +++ b/gn/services/gitea-dump.service @@ -0,0 +1,11 @@ +[Unit] +Description=Backup Gitea git server +Wants=gitea.service + +[Service] +Type=oneshot +Environment="GITEA_COMMAND=$(GUIX_PACKAGE_PATH=/home/efraimf/workspace/guix-bioinformatics /var/guix/profiles/per-user/efraimf/current-guix/bin/guix build gitea)/bin/gitea" +ExecStart=/bin/su -l gitea -c 'GITEA_WORK_DIR=/var/lib/git/gitea HOME=/var/lib/git/gitea ${GITEA_COMMAND} dump' + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3