From c59aa04e30179a2a0620a826e1fbb00ea5d6f91b Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Thu, 14 Nov 2019 15:39:38 +0100 Subject: [PATCH] Remove unused backup service on laptop --- .config/systemd/backup.service.laptop | 7 ------- .config/systemd/backup.timer.laptop | 9 --------- .config/systemd/notify-backup-failure.service | 7 +------ 3 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 .config/systemd/backup.service.laptop delete mode 100644 .config/systemd/backup.timer.laptop mode change 100644 => 120000 .config/systemd/notify-backup-failure.service diff --git a/.config/systemd/backup.service.laptop b/.config/systemd/backup.service.laptop deleted file mode 100644 index 3826629..0000000 --- a/.config/systemd/backup.service.laptop +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=Backup OVH -OnFailure=notify-backup-failure.service - -[Service] -Type=oneshot -ExecStart=/home/.config/backup/rsync/rsync_snapshot.sh 51.75.250.228 diff --git a/.config/systemd/backup.timer.laptop b/.config/systemd/backup.timer.laptop deleted file mode 100644 index 16f90f7..0000000 --- a/.config/systemd/backup.timer.laptop +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Backup OVH weekly - -[Timer] -OnCalendar=weekly -Persistent=true - -[Install] -WantedBy=timers.target diff --git a/.config/systemd/notify-backup-failure.service b/.config/systemd/notify-backup-failure.service deleted file mode 100644 index 8ae6bf9..0000000 --- a/.config/systemd/notify-backup-failure.service +++ /dev/null @@ -1,6 +0,0 @@ -[Unit] -Description=Send mail on backup failure - -[Service] -Type=oneshot -ExecStart=/usr/bin/bash -c '{ echo -e "Subject: Backup failed\n\nMachine info :\n" ; hostnamectl ; echo -e "\n\nLogs:\n\n" ; journalctl -n 20 -u backup.service; } | sendmail -F "Quentin Duchemin" -f "desktop@chosty.fr" quentin.duchemin@hds.utc.fr' diff --git a/.config/systemd/notify-backup-failure.service b/.config/systemd/notify-backup-failure.service new file mode 120000 index 0000000..e922b8c --- /dev/null +++ b/.config/systemd/notify-backup-failure.service @@ -0,0 +1 @@ +/home/chosty/.config/systemd/notify-backup-failure.service.desk \ No newline at end of file