Scp background execution
To execute scp in background add ampersand:
scp -r /path/on/local_pc/ root@IP:/path/on/server/ &
👆Also please reember, so speedup scp
if you copy folder with several files instead of one file use tar + ssh
:
tar -czf - /path/on/local_pc/ | ssh root@IP tar -xzf - -C /path/on/server/