Levi Zim activity https://gitlab.com/kxxt 2025-12-12T15:21:21Z tag:gitlab.com,2025-12-12:4907489486 Levi Zim pushed new project branch nixos-25.11 at Levi Zim / nixos-mailserver 2025-12-12T15:21:21Z kxxt Levi Zim

Levi Zim (5e82cb79) at 12 Dec 15:21

Exclude borg files from borg backup

... and 228 more commits

tag:gitlab.com,2025-12-01:4866822348 Levi Zim pushed to project branch main at kxxt-pkgbuilds / networking-meta 2025-12-01T11:53:23Z kxxt Levi Zim

Levi Zim (bc24f617) at 01 Dec 11:53

updpkg: 8-1: drop opensnitch

tag:gitlab.com,2025-07-02:4398672815 Levi Zim pushed to project branch nixos-25.05 at Levi Zim / nixos-mailserver 2025-07-02T12:06:47Z kxxt Levi Zim

Levi Zim (059e1aa1) at 02 Jul 12:06

No DovecotModulesOption for 25.05

tag:gitlab.com,2025-07-02:4397284181 Levi Zim pushed new project branch nixos-25.05 at Levi Zim / nixos-mailserver 2025-07-02T04:39:20Z kxxt Levi Zim

Levi Zim (47a1358d) at 02 Jul 04:39

Exclude borg files from borg backup

... and 82 more commits

tag:gitlab.com,2025-03-14:4103736075 Levi Zim pushed to project branch master at Levi Zim / nixos-mailserver 2025-03-14T23:52:04Z kxxt Levi Zim

Levi Zim (9f58842d) at 14 Mar 23:52

Exclude borg files from borg backup

... and 6 more commits

tag:gitlab.com,2025-01-31:3993320935 Levi Zim commented on merge request !359 at simple-nixos-mailserver / nixos-mailserver 2025-01-31T05:56:20Z kxxt Levi Zim

Thanks for your detailed explanation ☺️! I will change this PR to use a persistent directory.

Do you prefer to keep this directory in mailDirectory and exclude it from borg, or just use a persistent directory outside mailDirectory like /var/vmail-borg?

tag:gitlab.com,2025-01-31:3993307268 Levi Zim pushed to project branch nixos-24.11 at Levi Zim / nixos-mailserver 2025-01-31T05:44:02Z kxxt Levi Zim

Levi Zim (34008397) at 31 Jan 05:44

Exclude borg files from borg backup

tag:gitlab.com,2025-01-23:3973324476 Levi Zim commented on merge request !359 at simple-nixos-mailserver / nixos-mailserver 2025-01-23T01:17:57Z kxxt Levi Zim

Is it not an issue to cleanup this borg directory at each run?

I think cleanup this borg directory will also solve this issue. But fundamentally this issue is caused by borg backing up a directory /var/vmail that itself also writes to (/var/vmail/.config/borg). So my proposed solution here is to let borg writes to a private /tmp instead.

(i presume the private tmp directory is cleaned up by systemd each time the service is stopped).

Yes

tag:gitlab.com,2025-01-21:3968013934 Levi Zim opened merge request !359: Set HOME to private /tmp for borgbackup at simple-nixos-mailserver / nixos-mailserver 2025-01-21T13:38:17Z kxxt Levi Zim

borg writes to $HOME/.config but in our case it also works on $HOME (/var/vmail).

This could cause the following error when running the backup: file changed while we backed it up

× borgbackup.service - borgbackup
     Loaded: loaded (/etc/systemd/system/borgbackup.service; linked; preset: ignored)
    Drop-In: /nix/store/8iqfrm23vqm9vb4dhfrkm2gp53rhds65-system-units/service.d
             └─10-all-failure-handler.conf
     Active: failed (Result: exit-code) since Tue 2025-01-21 11:00:14 UTC; 54ms ago
   Duration: 11.283s
 Invocation: 1712129869394f1f8eabc4cd26d3ab4c
TriggeredBy: ● borgbackup.timer
       Docs: man:borgbackup
    Process: 78255 ExecStart=/nix/store/khkr1l6395czf0sn79i0kmfp7pvimlm5-unit-script-borgbackup-start/bin/borgbackup-start (code=exited, status=1/FAILURE)
   Main PID: 78255 (code=exited, status=1/FAILURE)
         IP: 16.6K in, 18.8K out
         IO: 24K read, 628K written
   Mem peak: 66.2M
        CPU: 1.887s

Jan 21 11:00:02 revelations systemd[1]: Started borgbackup.
Jan 21 11:00:13 revelations borgbackup-start[78267]: /var/vmail/.config/borg/security/25276a6702fe342e099d0c711d20ff31752131884fd017bf76c0169ba84682b2/nonce: file changed while we backed it up
Jan 21 11:00:14 revelations systemd[1]: borgbackup.service: Main process exited, code=exited, status=1/FAILURE
Jan 21 11:00:14 revelations systemd[1]: borgbackup.service: Failed with result 'exit-code'.
Jan 21 11:00:14 revelations systemd[1]: borgbackup.service: Triggering OnFailure= dependencies.
Jan 21 11:00:14 revelations systemd[1]: borgbackup.service: Consumed 1.887s CPU time, 66.2M memory peak, 24K read from disk, 628K written to disk, 16.6K incoming IP traffic, 18.8K outgoing IP traffic.

This commit fixes it by setting HOME to private /tmp for borg.

tag:gitlab.com,2025-01-21:3967631057 Levi Zim pushed to project branch nixos-24.11 at Levi Zim / nixos-mailserver 2025-01-21T11:49:56Z kxxt Levi Zim

Levi Zim (3f806ebf) at 21 Jan 11:49

Set HOME to private /tmp for borgbackup

tag:gitlab.com,2025-01-21:3967629804 Levi Zim pushed new project branch fix-borg-home at Levi Zim / nixos-mailserver 2025-01-21T11:49:33Z kxxt Levi Zim

Levi Zim (3e4908fa) at 21 Jan 11:49

Set HOME to private /tmp for borgbackup

tag:gitlab.com,2025-01-21:3967596293 Levi Zim created project Levi Zim / nixos-mailserver 2025-01-21T11:39:24Z kxxt Levi Zim tag:gitlab.com,2024-12-03:3863970881 Levi Zim pushed to project branch main at kxxt-pkgbuilds / virt-meta 2024-12-03T04:04:17Z kxxt Levi Zim

Levi Zim (a5be8f79) at 03 Dec 04:04

updpkg: 5-1: use docker

tag:gitlab.com,2024-10-31:3778596963 Levi Zim commented on issue #20224 at GitLab.org / GitLab 2024-10-31T11:33:52Z kxxt Levi Zim

I think cutting the commit title at 80 characters is deliberate, as @mle said in !145730 (comment 1808629537)

tag:gitlab.com,2024-10-10:3717014412 Levi Zim pushed to project branch main at kxxt-pkgbuilds / neovim-is-vim 2024-10-10T02:31:30Z kxxt Levi Zim

Levi Zim (90e1509f) at 10 Oct 02:31

updpkg: 1-3

tag:gitlab.com,2024-10-07:3708403301 Levi Zim pushed to project branch main at kxxt-pkgbuilds / typesetting-meta 2024-10-07T14:43:31Z kxxt Levi Zim

Levi Zim (2ba607f4) at 07 Oct 14:43

updpkg 2-1

tag:gitlab.com,2024-10-07:3708357505 Levi Zim pushed to project branch main at kxxt-pkgbuilds / debugger-meta 2024-10-07T14:30:50Z kxxt Levi Zim

Levi Zim (3a6bda65) at 07 Oct 14:30

updpkg: 2-1

tag:gitlab.com,2024-10-07:3708303526 Levi Zim pushed to project branch main at kxxt-pkgbuilds / base-shell-ux 2024-10-07T14:18:19Z kxxt Levi Zim

Levi Zim (88bdec22) at 07 Oct 14:18

updpkg: 10-1

tag:gitlab.com,2024-10-07:3708290118 Levi Zim pushed to project branch main at kxxt-pkgbuilds / networking-meta 2024-10-07T14:14:35Z kxxt Levi Zim

Levi Zim (77a601f3) at 07 Oct 14:14

updpkg: 5-1

tag:gitlab.com,2024-10-07:3708273196 Levi Zim pushed to project branch main at kxxt-pkgbuilds / system-devel 2024-10-07T14:09:59Z kxxt Levi Zim

Levi Zim (bfe6afda) at 07 Oct 14:09

updpkg: 3-1