diff --git a/etc/systemd/system/borgmatic-check@.service b/etc/systemd/system/borgmatic-check@.service index 1f9aa06..30cc8dd 100644 --- a/etc/systemd/system/borgmatic-check@.service +++ b/etc/systemd/system/borgmatic-check@.service @@ -1,5 +1,5 @@ [Unit] -Description=Run borgmatic backup check for %I utilizing HOME/.config/borgmatic/%I.yml file +Description=Run borgmatic check for %I utilizing HOME/.config/borgmatic/%I.yml file OnFailure=systemd_failure_notify@%n.service Wants=network-online.target After=network-online.target diff --git a/etc/systemd/system/borgmatic-check@.timer b/etc/systemd/system/borgmatic-check@.timer index 99a29ef..4f45ef5 100644 --- a/etc/systemd/system/borgmatic-check@.timer +++ b/etc/systemd/system/borgmatic-check@.timer @@ -1,8 +1,8 @@ [Unit] -Description=Run borgmatic check %I backup timer utilizing HOME/.config/borgmatic/%I.yml file +Description=Run borgmatic %I check timer utilizing HOME/.config/borgmatic/%I.yml file [Timer] -OnCalendar=Mon,Thu 22:00:00 +OnCalendar=Wed 21:30:00 Persistent=true [Install] diff --git a/etc/systemd/system/borgmatic-create@.service b/etc/systemd/system/borgmatic-create@.service new file mode 100644 index 0000000..f6767e3 --- /dev/null +++ b/etc/systemd/system/borgmatic-create@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Run borgmatic create for %I utilizing HOME/.config/borgmatic/%I.yml file +OnFailure=systemd_failure_notify@%n.service +Wants=network-online.target +After=network-online.target +ConditionACPower=true + +[Service] +Type=oneshot +ExecStart=borgmatic create --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml +Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin" +Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh" + +[Install] +WantedBy=multi-user.target diff --git a/etc/systemd/system/borgmatic-create@.timer b/etc/systemd/system/borgmatic-create@.timer new file mode 100644 index 0000000..264f03d --- /dev/null +++ b/etc/systemd/system/borgmatic-create@.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run borgmatic %I create timer utilizing HOME/.config/borgmatic/%I.yml file + +[Timer] +OnCalendar=*-*-* 20:00:00 +Persistent=false + +[Install] +WantedBy=timers.target diff --git a/etc/systemd/system/borgmatic-prune@.service b/etc/systemd/system/borgmatic-prune@.service new file mode 100644 index 0000000..c3d3339 --- /dev/null +++ b/etc/systemd/system/borgmatic-prune@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Run borgmatic prune for %I utilizing HOME/.config/borgmatic/%I.yml file +OnFailure=systemd_failure_notify@%n.service +Wants=network-online.target +After=network-online.target +ConditionACPower=true + +[Service] +Type=oneshot +ExecStart=borgmatic prune --only repository --only archives --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml +Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin" +Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh" + +[Install] +WantedBy=multi-user.target diff --git a/etc/systemd/system/borgmatic-prune@.timer b/etc/systemd/system/borgmatic-prune@.timer new file mode 100644 index 0000000..01a66f9 --- /dev/null +++ b/etc/systemd/system/borgmatic-prune@.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run borgmatic %I prune timer utilizing HOME/.config/borgmatic/%I.yml file + +[Timer] +OnCalendar=Wed 23:00:00 +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/etc/systemd/user/borgmatic-check@.service b/etc/systemd/user/borgmatic-check@.service index 1f9aa06..30cc8dd 100644 --- a/etc/systemd/user/borgmatic-check@.service +++ b/etc/systemd/user/borgmatic-check@.service @@ -1,5 +1,5 @@ [Unit] -Description=Run borgmatic backup check for %I utilizing HOME/.config/borgmatic/%I.yml file +Description=Run borgmatic check for %I utilizing HOME/.config/borgmatic/%I.yml file OnFailure=systemd_failure_notify@%n.service Wants=network-online.target After=network-online.target diff --git a/etc/systemd/user/borgmatic-check@.timer b/etc/systemd/user/borgmatic-check@.timer index 99a29ef..4f45ef5 100644 --- a/etc/systemd/user/borgmatic-check@.timer +++ b/etc/systemd/user/borgmatic-check@.timer @@ -1,8 +1,8 @@ [Unit] -Description=Run borgmatic check %I backup timer utilizing HOME/.config/borgmatic/%I.yml file +Description=Run borgmatic %I check timer utilizing HOME/.config/borgmatic/%I.yml file [Timer] -OnCalendar=Mon,Thu 22:00:00 +OnCalendar=Wed 21:30:00 Persistent=true [Install] diff --git a/etc/systemd/user/borgmatic-create@.service b/etc/systemd/user/borgmatic-create@.service new file mode 100644 index 0000000..f6767e3 --- /dev/null +++ b/etc/systemd/user/borgmatic-create@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Run borgmatic create for %I utilizing HOME/.config/borgmatic/%I.yml file +OnFailure=systemd_failure_notify@%n.service +Wants=network-online.target +After=network-online.target +ConditionACPower=true + +[Service] +Type=oneshot +ExecStart=borgmatic create --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml +Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin" +Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh" + +[Install] +WantedBy=multi-user.target diff --git a/etc/systemd/user/borgmatic-create@.timer b/etc/systemd/user/borgmatic-create@.timer new file mode 100644 index 0000000..264f03d --- /dev/null +++ b/etc/systemd/user/borgmatic-create@.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run borgmatic %I create timer utilizing HOME/.config/borgmatic/%I.yml file + +[Timer] +OnCalendar=*-*-* 20:00:00 +Persistent=false + +[Install] +WantedBy=timers.target diff --git a/etc/systemd/user/borgmatic-prune@.service b/etc/systemd/user/borgmatic-prune@.service new file mode 100644 index 0000000..c3d3339 --- /dev/null +++ b/etc/systemd/user/borgmatic-prune@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Run borgmatic prune for %I utilizing HOME/.config/borgmatic/%I.yml file +OnFailure=systemd_failure_notify@%n.service +Wants=network-online.target +After=network-online.target +ConditionACPower=true + +[Service] +Type=oneshot +ExecStart=borgmatic prune --only repository --only archives --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml +Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin" +Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh" + +[Install] +WantedBy=multi-user.target diff --git a/etc/systemd/user/borgmatic-prune@.timer b/etc/systemd/user/borgmatic-prune@.timer new file mode 100644 index 0000000..01a66f9 --- /dev/null +++ b/etc/systemd/user/borgmatic-prune@.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run borgmatic %I prune timer utilizing HOME/.config/borgmatic/%I.yml file + +[Timer] +OnCalendar=Wed 23:00:00 +Persistent=true + +[Install] +WantedBy=timers.target