From 848b61d7ada7e25d9a39558b2e2098ace5b5c7c8 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Wed, 13 Apr 2022 06:51:26 +0000 Subject: [PATCH] Allow read permissions on backups --- hosts/linode/postgres.nix | 4 ++++ 1 file changed, 4 insertions(+) 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 '{}' \\;" + ]; }