MagePsycho / magento2-db-code-backup-bash-script

Bash Script: Backup Magento2 Code + Database
https://blog.magepsycho.com/bash-script-easily-backup-magento2-code-files-database/
42 stars 6 forks source link

tput: No value for $TERM and no -T specified #5

Open deedy-tech opened 3 years ago

deedy-tech commented 3 years ago

Hi Firstly thanks for creating this tool, I find it really useful.

I am running the following command as a nightly cronjob on my Ubuntu 20.04 box and I get the following output

/usr/local/bin/mage2-backup --backup-code --skip-media --use-mysql-config --src-dir=/var/www/html --dest-dir=/S3/backups/LIVE/CODE/

tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified

Cheers Rob

IanFiretoys commented 2 years ago

hi, this is an error being generated by the crontab rather than the backup script: see here https://stackoverflow.com/questions/29979966/tput-no-value-for-term-and-no-t-specified-error-logged-by-cron-process#:~:text=If%20no%20%24TERM%20variable%20is,like%20xterm%20)%20in%20the%20crontab.

you can add TERM=dumb or whatever terminal you prefer to your cron command to get rid of it