3
0
Fork 0
forked from mirrors/nixpkgs
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
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
btrbk.nix
duplicati.nix treewide: use types.port in nixos modules 2022-11-10 09:30:00 +01:00
duplicity.nix
mysql-backup.nix
postgresql-backup.nix
postgresql-wal-receiver.nix
restic-rest-server.nix
restic.nix
rsnapshot.nix
sanoid.nix
syncoid.nix
tarsnap.nix
tsm.nix
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