Skip to content
WJunction - Webmaster Forum

SCP command usage

Status
Not open for further replies.
Command for move files from old server to new server, which does not support rsync --remove-source-files


Code:
for file in /lx/test/*; do scp -rp "$file" root@192.168.1.15:/lx/scp && rm -rf "$file" ; done

May be helpful for someone
 
Status
Not open for further replies.

About the author

2
Active Member · Joined
Chief Technical Officer, MCSE, RHCE Certified Blogging and Forums
80
Messages
4
Reactions
8
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom