Browse Source

backups: no need to recursively apply ownership/mode changes

Also, once the backup grows too large, the systemd service will
timeout in the startup phase while applying the ownership changes.
master
Peter J. Jones 2 months ago
parent
commit
81e1aba674
Signed by: Peter Jones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/backup/rsync.nix

+ 2
- 2
modules/backup/rsync.nix View File

@@ -119,8 +119,8 @@ let

preStart = ''
mkdir -p "${opts.localdir}"
chown -R ${cfg.user}:${cfg.group} "${opts.localdir}"
chmod -R 0700 "${opts.localdir}"
chown ${cfg.user}:${cfg.group} "${opts.localdir}"
chmod 0700 "${opts.localdir}"
'';

script = ''

Loading…
Cancel
Save