• Joined on 2024-03-13
knedlyk commented on issue borgmatic-collective/borgmatic#845 2024-04-13 05:47:24 +00:00
Unmount FS before backup to avoid failure due to lock

Are you running borgmatic as the root user? If so, then you don't need sudo at all.

I run borgmatic as a root, but it doesn't work without sudo the same.

This is my borgmatic.service…

knedlyk commented on issue borgmatic-collective/borgmatic#845 2024-04-13 00:02:24 +00:00
Unmount FS before backup to avoid failure due to lock

Yes, sudo would be needed if you're running as a non-root user. But be aware that sudo can prompt for a password, which would be problematic if used non-interactively.

strangely, this…

knedlyk commented on issue borgmatic-collective/borgmatic#845 2024-04-12 05:48:27 +00:00
Unmount FS before backup to avoid failure due to lock

I generally don't recommend running borgmatic from borgmatic, just to avoid the risk of infinite recursion. And borgmatic umount is really a thin wrapper around umount, so you're not losing…

knedlyk commented on issue borgmatic-collective/borgmatic#845 2024-04-01 17:48:29 +00:00
Unmount FS before backup to avoid failure due to lock

I haven't tested it, but you might be able to just do something like:

before_backup:
    umount /your/mount/point

I would recommend trying it both with the…

knedlyk opened issue borgmatic-collective/borgmatic#845 2024-03-30 12:06:27 +00:00
Unmount FS before backup
knedlyk commented on issue borgmatic-collective/borgmatic#841 2024-03-13 20:38:37 +00:00
Running command in hook on behalf of another user?

You are right! Probably these two options /^^^ are influencing, from man:

Thank you for pointing my attention. Actually, the idea is to protect files from accidental changing by…

knedlyk commented on issue borgmatic-collective/borgmatic#841 2024-03-13 18:34:06 +00:00
Running command in hook on behalf of another user?

I have created systems service and time units:

Okay, it looks like that systemd service/timer is running as the root user. That's good. So does your full sudo command work when run from…

knedlyk commented on issue borgmatic-collective/borgmatic#841 2024-03-13 17:40:35 +00:00
Running command in hook on behalf of another user?

Is it possible to use sudo in hooks somehow or what to use?

In theory, yes—if you're running as the root user and sudo-ing to a non-root user. So when you're running borgmatic, what…

knedlyk opened issue borgmatic-collective/borgmatic#841 2024-03-13 07:25:41 +00:00
Running command in hook on behalf of another user?