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

Re: [K12OSN] Way OT: scripting help



Les Mikesell wrote:
> I've always thought rsync missed a feature by not having an option to
> move files - that is, delete the source (only) after a successful
> transfer.  But, it is pretty reliable and a lot easier to script around
> than other file transfer methods.

rsync exits non-zero if the transfer is not successful. What's wrong with:

rsync -avP -e ssh /foo root dest:/foo && rm -f /foo

-- 
Dan Young <dyoung mesd k12 or us>
Multnomah ESD - Technology Services
503-257-1562


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