nixpkgs/nixos/modules/services/backup
Bjørn Forsman 0f0929f4aa nixos/borgbackup: fix ~/.cache, ~/.config ownership
Invoke `install` separately for each directory to get ownership right --
i.e. not always owned by root. When owned by root, user sessions break
as no user processes are allowed to create directores there. On normal
systems the directories already exist, but in clean environments / NixOS
test VMs, the bug shows.

Before:
  $ namei -l /home/user1/.cache/borg
  f: /home/user1/.cache/borg
  drwxr-xr-x root  root  /
  drwxr-xr-x root  root  home
  drwx------ user1 users user1
  drwxr-xr-x root  root  .cache
  drwxr-xr-x user1 users borg

After:
  $ namei -l /home/user1/.cache/borg
  f: /home/user1/.cache/borg
  drwxr-xr-x root  root  /
  drwxr-xr-x root  root  home
  drwx------ user1 users user1
  drwxr-xr-x user1 users .cache
  drwxr-xr-x user1 users borg
2022-12-28 13:07:16 +01:00
..
automysqlbackup.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
bacula.nix treewide: use types.port in nixos modules 2022-11-10 09:30:00 +01:00
borgbackup.nix nixos/borgbackup: fix ~/.cache, ~/.config ownership 2022-12-28 13:07:16 +01:00
borgbackup.xml Add BORG_RSH entry under an environment option 2022-12-07 01:00:59 +01:00
borgmatic.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
btrbk.nix nixos/btrbk: fix ordering of subsections and refactor 2022-10-24 08:52:25 +08:00
duplicati.nix treewide: use types.port in nixos modules 2022-11-10 09:30:00 +01:00
duplicity.nix nixos/*: convert options with listings 2022-08-31 17:27:36 +02:00
mysql-backup.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
postgresql-backup.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
postgresql-wal-receiver.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
restic-rest-server.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
restic.nix Merge pull request #188881 from shadaj/patch-4 2022-10-12 21:26:00 +01:00
rsnapshot.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
sanoid.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
syncoid.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
tarsnap.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
tsm.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
zfs-replication.nix nixos: fix typos 2022-12-17 19:31:14 -05:00
znapzend.nix nixos: fix typos 2022-12-17 19:31:14 -05:00
zrepl.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00