What am I doing wrong here?
I Log into the first server (using putty) and run the following query:
sh -c 'nohup mysqldump -hxxx -Pxxx -uxxx -pxxx --dump-slave --include-master-host-port --apply-slave-statements -f -q -A -E -R | mysql -hxxxx -Pxxxx -uxxxx -pxxxx' &
If I look on the two databases I can see the MySQLDump is running on the first, and being imported on the second.
But the instance I close my Putty session, (or it times out) the mysqldump stops running. I thought that using
nohup was supposed to keep it running??
As it's going to take apx 8 hours to run, I can't be sitting there looking at Putty for 8 hrs to stop it timing out.