I have this command in the crontab
bash /opt/database/pg_backup_rotated.sh -c /opt/database/pg_backup.config >> /opt/data/logs/daily-database_dump.log 2>&1
and in the.bashrc I have PG_PASSWORD
supplied for the backup user.
The crontab stops by asking password while executing the above command through the terminal and works fine (it does not ask for a password). What is wrong?
I am using instructions from there to backup: https://wiki.postgresql.org/wiki/Automated_Backup_on_Linux
PG_PASSWORD
assignment in ~/.bashrc