mastodon_db_backup.sh - disable TTY on docker-compose; use pipefail
Script ran fine on the console, failed in cron job. This is because the docker-compose exec command was attempting (by default) to allocate a TTY, and failing. This was also not being detected because the default bash behaviour is to return the status of the last command in a pipe (in this case, gzip). Enable pipefail option to prevent this.
Please register or sign in to comment