Manage cron jobs through systemd, disable the package alert

This commit is contained in:
Ohad Livne 2025-06-04 22:47:01 +03:00
parent 6a051173d6
commit 751fd05b20
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
4 changed files with 21 additions and 3 deletions

View file

@ -1,3 +1,3 @@
#! /usr/bin/sh #! /usr/bin/sh
crontab ./crontab systemctl --user enable --now backup.timer

View file

@ -1,2 +0,0 @@
@hourly /home/ohad/.local/bin/make-backup
@hourly /home/ohad/.local/bin/package-alert

View file

@ -0,0 +1,10 @@
[Unit]
Description=Backup essential files
Wants=backup.timer
[Service]
WorkingDirectory=%h
ExecStart=%h/.local/bin/make-backup
[Install]
WantedBy=default.target

View file

@ -0,0 +1,10 @@
[Unit]
Description=Hourly backup job
Requires=backup.service
[Timer]
Unit=backup.service
OnCalendar=hourly
[Install]
WantedBy=timers.target