Date: Tue, 6 Feb 2007 16:16:57 -0600 From: "Preston Hagar" <prestonh@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: SCP & Delete Message-ID: <8f5897560702061416y564cb6fdsca3ca7f216c352d6@mail.gmail.com> In-Reply-To: <8f5897560702061416u423fb8ddu248ec686760a2ea5@mail.gmail.com> References: <005401c74a2b$30361b90$0300020a@mickey> <3B0782F6-FF0D-42AA-9497-450323607CFF@mac.com> <8f5897560702061416u423fb8ddu248ec686760a2ea5@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 2/6/07, Chuck Swiger <cswiger@mac.com> wrote: > > > > On Feb 6, 2007, at 3:12 PM, Don O'Neil wrote: > > > How do I delete a file after I've copied it with SCP? Is there some > > > sort of > > > secure 'rm' command? > > > > Use "rsync --delete" via SSH. (Danger! Slippery when wet! Use with > > caution.) > > > > -- > > -Chuck > > > I am not sure the rsync --delete is what the OP intended. rsync --delete > will delete the file on the remote location if it no longer exists in the > source location. The OP wanted to, as I understood it, delete the file from > the source location after it was copied to the remote location. Probably > the best bet would to be to have a script scp the files, do some sort of > verification that they made it intact, and then do an ssh user@host"/path/to/file" as suggested earlier. > > HTH, > > Preston > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8f5897560702061416y564cb6fdsca3ca7f216c352d6>