I'm trying to bring incremental backups to one old setup. The script I create worked perfectly when run directly. However when I run it from crontab or when redirecting shell output all data is written to stdout.
mysqldump --compact -T /some/backups/$db/ $db
It looks like
-T doesn't work correctly in this case. Can someone share any experience of creating backups in a