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

Re: using scp to move files

On Mon, 4 Oct 2004 12:13:25 -0700, Peter Hicks <petong@jah.net> wrote:
> 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 :-)

I read the manual page on rsync. The --delete-after deletes the files
on the receiving end. What I need is an option to delete on the
sender. Did I miss anything?


Reply to: