nc -l 9999 > /home/user/backups/backup.xbstream &) && ssh user@db_host_ip "(xtrabackup --backup --stream --user=dbuser --password=dbpass &) | nc -N dest_host_ip 9999"
xbstream -x < backup.xbstream
NOTE: user
must to be in mysql
group
nc -l 9999 > /home/user/backups/backup.xbstream &) && ssh user@db_host_ip "(xtrabackup --backup --stream --user=dbuser --password=dbpass &) | nc -N dest_host_ip 9999"
xbstream -x < backup.xbstream
NOTE: user
must to be in mysql
group