Linux Run SCP command in background
Here is how you can keep the SCP command running even after closing the remote shell (e.g Putty)
Keep Process In Background
- Open ssh terminal to remote server.
- Type your
scp
command as normal - Background the scp process by entering Ctrl+Z, then typing the command
bg
- Disown the background process by typing
disown
- Close the SSH session and you will see that it is still running
Verify Process Is Running
You can verify that it is running by checking the remote destination size. For example, using the command du -s <directory>
to check a directory size, or ls -l <filename>
to check a file size
Be First to Comment