Friday, 6 July 2012

How to prevent stopping of long copy operation by reason of disconnected ssh session

I need to copy of many files with copy speed restriction. Also I have power off my workstation: there will be some planned power outage. To prevent job from  stop I use the Linux screen command.
Example:
Start screen session on remote host:
#screen
Disconnect from the session:
CTRL-A, d
Reconnect to screen session after logging back:
#screen -r -d
Exit from screen session:
#exit

No comments: