yashaskm11
  • Joined on 2023-06-26
yashaskm11 closed issue borgmatic-collective/borgmatic#718 2023-06-27 17:30:15 +00:00
Borgmatic not working with systemd, while runs fine manually
yashaskm11 commented on issue borgmatic-collective/borgmatic#718 2023-06-27 17:30:15 +00:00
Borgmatic not working with systemd, while runs fine manually

Indeed, the directory I was trying to write was not owned by root. Thanks for the help mate !!

yashaskm11 commented on issue borgmatic-collective/borgmatic#718 2023-06-27 07:56:31 +00:00
Borgmatic not working with systemd, while runs fine manually

Finally figured it out, thanks @witten . It was CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_NET_RAW that was causing trouble. So enabled everything except this. What purpose does this serve…

yashaskm11 commented on issue borgmatic-collective/borgmatic#718 2023-06-26 18:01:21 +00:00
Borgmatic not working with systemd, while runs fine manually

That worked !! Is it okay to leave them all disabled ?

yashaskm11 commented on issue borgmatic-collective/borgmatic#718 2023-06-26 17:35:57 +00:00
Borgmatic not working with systemd, while runs fine manually
[Unit]
Description=borgmatic backup
Wants=network-online.target
After=network-online.target
# Prevent borgmatic from running unless the machine is plugged into power. Remove this line if…
yashaskm11 commented on issue borgmatic-collective/borgmatic#718 2023-06-26 17:20:45 +00:00
Borgmatic not working with systemd, while runs fine manually
  1. I use sudo to run borgmatic from command line (I've added /root/.local/bin to sudoers default path). It seems that it's root-level service as I followed the exact instructions from the…
yashaskm11 commented on issue borgmatic-collective/borgmatic#718 2023-06-26 16:43:00 +00:00
Borgmatic not working with systemd, while runs fine manually

Thanks for quick reply, yes the issue was due to incorrect system path for borgmatic. Now that's fixed and I'm facing a new issue.

Jun 26 16:30:55 alder borgmatic[164247]: CRITICAL…
yashaskm11 opened issue borgmatic-collective/borgmatic#718 2023-06-26 13:58:30 +00:00
Borgmatic not working with systemd, while runs fine manually