标签: mysql linux shell
有两种方法可以实现我的想法,
(innobackupex --stream=tar ./ | ssh root@192.168.0.105 "cat - > backup.tar") 2> backup.log innobackupex --stream=tar ./ 2> backup.log | ssh root@192.168.0.105 "cat - > backup.tar"
但是他们两个都无法将stderr重定向到远程文件。有什么方法可以解决这个问题吗?