diff --git a/hosts/linode/postgres.nix b/hosts/linode/postgres.nix index 66df987..9191feb 100644 --- a/hosts/linode/postgres.nix +++ b/hosts/linode/postgres.nix @@ -44,4 +44,8 @@ root root postgres enable = true; devices = [ "nas" ]; }; + + services.cron.systemCronJobs = [ + "59 2 * * * root chmod -R a+r ${config.services.postgresqlBackup.location} && find ${config.services.postgresqlBackup.location} -type d -exec chmod a+x '{}' \\;" + ]; }