Backups should not be written to disk temporarily
Currently, the mysqldump backup provider writes the backup to the local filesystem and then opens the file and returns that as the io.Reader for the object storage client.
https://github.com/oracle/mysql-operator/blob/2a251f7c0886a8302a63f59a34858047ea88127f/pkg/backup/executor/mysqldump/provider.go#L88-L108
We should upload directly to object storage without writing to disk.
@prydie like to contribute if possible, my thought is to use an io.Pipe mechanism to redirect the output of mysqldump to s3 storage store, does this direction look good to you?
@Simon-Li Awesome! I started a branch using io.Pipe but didn't manage to get it working before getting diverted. It might be a helpful starting point though: https://github.com/oracle/mysql-operator/commit/badf54e9918974af461bde4ccb856e420f23713c.
@prydie ha~, great, will do!