Monday, 18 March 2019

How to run SCP in background on Linux.

How to run SCP in background on Linux.

Source server: 192.168.1.1
Destination server: 192.168.1.10
File-size: 50GB
Filename: tech.dump


[root@sankar-paas ~]#nohup scp -r Tech.dump  techuser@192.168.1.10:/sankar-svn
nohup: appending output to `nohup.out'
skodipilla@192.168.1.10's password:     after password just press Ctrl+z

[1]+  Stopped                 nohup scp -r Tech.dump techuser@192.168.1.10:/sankar-svn

Then finally run below command.

[root@sankar-paas ~]# bg
[1]+ nohup scp -r Tech.dump techuser@192.168.1.10:/sankar-svn  &

No comments:

Post a Comment