--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to percona-discuss...@googlegroups.com.
To post to this group, send email to percona-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Please note that with the stream option you are outputting your backups to the standard output, so it cannot be used for logging. Use the error output (#2) instead:innobackupex --user=root --stream=tar /backups 2> /tmp/xtrabackup.log | gzip --fast -c - > /backups/backup.tar.gz
Make sure that /backups is on a remote filesystem or you copy it elsewhere for a correct backup process.
Please also note that streaming backups have already compression support, and it has the advantage over 3rd party methods that allow on-the-fly compression, parallel backups and multiple compression threads (it had to be implemented in xbstream due to tar limitations):
innobackupex --compress --parallel=4 --compress-threads=4 --stream=xbstream /backups > /backups/backup.xbstream 2> /tmp/xtrabackup.logTo later decompress:
xbstream -x -C /backups < /backups/backup.xbstream
innobackupex --decompress /backupsFor more details about the advantages of in-house compression and parallel backups:Regards,
On Mon, Dec 30, 2013 at 8:57 AM, Kari Lehtinen <kar...@gmail.com> wrote:
Hi,
I'm planning to move from mysqldump to innobackupex using stream method and gzip, however I'm not able to forward output to logfile. I have tried e.g. following but file /tmp/xtrabackup.log stays empty.
innobackupex --user=root --stream=tar /backups/ | gzip --fast -c - > /backups/backup.tar.gz > /tmp/xtrabackup.log
Any suggestions how to redirect innobackupex output to logfile ?
Installed version: percona-xtrabackup 2.1.6-702-1.precise
Thanks,
Kari
--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to percona-discussion+unsub...@googlegroups.com.
To post to this group, send email to percona-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks, this seems to work. I'm using gzip because it seems to provide slightly better compression ratio over qpress and speed is not the issue in this case.