Nico Kadel-Garcia
2016-06-09 03:42:35 UTC
I'm getting nowhere with MySQL documentaiton and users, and am hoping
that one of my old rsnapshot friends has run into this.
I've got some very bulky MySQL environments to back up to rsnapshot.
But the local backups of the MySQL tables, in order to rsnapshot them,
take so long and so many resources that they interfere with the
business use of the MySQL server.
It would be much faster, and tak emuch less space on the MySQL server,
if I can gracefully export the tsv files as compressed files, but
MySQL seems to have no direct facility for this. The "mysqldump --tab"
option, and the mysql "select * from table into outfile 'filename'"
both fail if the file already exists, so I can't just output to a pipe
tied to gzip or bzip2 as I might for *loading* from a bulky csv or tsv
file.
Does anyone from this backup community have a really good script or
wrapper for doing this? I'm finding a lot of pretty poor quality
tools, many of which do not gracefully handle binary data which may
contain "tab" or "comma" characters, and are not able to gracefully
handle binary fields that might contain those characters and fail to
follow the well defined MySQL output formats to quote them properly.
that one of my old rsnapshot friends has run into this.
I've got some very bulky MySQL environments to back up to rsnapshot.
But the local backups of the MySQL tables, in order to rsnapshot them,
take so long and so many resources that they interfere with the
business use of the MySQL server.
It would be much faster, and tak emuch less space on the MySQL server,
if I can gracefully export the tsv files as compressed files, but
MySQL seems to have no direct facility for this. The "mysqldump --tab"
option, and the mysql "select * from table into outfile 'filename'"
both fail if the file already exists, so I can't just output to a pipe
tied to gzip or bzip2 as I might for *loading* from a bulky csv or tsv
file.
Does anyone from this backup community have a really good script or
wrapper for doing this? I'm finding a lot of pretty poor quality
tools, many of which do not gracefully handle binary data which may
contain "tab" or "comma" characters, and are not able to gracefully
handle binary fields that might contain those characters and fail to
follow the well defined MySQL output formats to quote them properly.