[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using scp to move files

On Mon, Oct 04, 2004 at 03:41:43PM +0000, Kamaraju Kusumanchi wrote:
>Hi all
>   Very simple question but I cannot find the answer in google
>(possibly wrong keywords).
>   I need to move some files from a server to client. I am planning to
>use scp for this. Using scp, I can only copy the files. But I want to
>move the files instead of copying them. Any ideas? The manual of scp
>does not have any option for this.
>Are there any other programs which achieve the same result?

Try using rsync with the --delete-after flag. You can tunnel rsync over
ssh using the -e flag. That should accomplish what you are trying to
achieve, I believe.

man rsync just to make sure :-)

Peter Hicks
"Nuclear war can ruin your whole compile." -- Karl Lehenbauer

Reply to: