I run the following command which all.sql.gz is greater than the amount of free space on hard drive....but somehow it completes without issue. Is it because of how the piping works?
mysqldump --defaults-file=/home/ec2-user/db-master.cnf --tz-utc=false --quick --all-databases --single-transaction --routines --triggers | gzip | s3cmd "$BACKUP_OPTIONS" put - "$BACKUP_S3PATH"/"php-pos-db"/"all".sql.gz >/dev/null 2>&1