Elastix, how to MOVE files from one server to other server?

Posted by yudayyy on Server Fault See other posts from Server Fault or by yudayyy
Published on 2012-07-05T08:30:32Z Indexed on 2012/07/05 9:17 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

In my office, i have to schedule for moving a file from one computer to other computer (Both are using Elastix).

My idea is using cron, scp, and rm to do this. So here are the script that i use:

scp -r /home/data/* [email protected]:/home/data1 && rm -r /home/data/*

That script did the copy, but not remove the source file.

I already read this question: Hov to _MOVE_ files with scp?

The problem is, the computer doesn't have an internet connection. So i cannot install rsync on my elastix computer.

yum install rsync

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

and then it freezes.

Any idea how to do this?

© Server Fault or respective owner

Related posts about linux

Related posts about rsync