Add chmod before tar to fix pgdata permission errors
PostgreSQL data files are owned by UID 105 (postgres) and not readable by the tar process. Add chmod -R a+rX to relax permissions before creating the archive.
PostgreSQL data files are owned by UID 105 (postgres) and not readable by the tar process. Add chmod -R a+rX to relax permissions before creating the archive.