rapier wrote:> User demand and it's a deliverable for a project. Like I said in my first > message I know that rsync can do basically the same thing but ya know, > deliverables need to be delivered. Just thought I'd share the results.I would be inclined to act as a BOFH and replace scp with a script wrapper that called rsync. "There! I deliverd an scp that handles resume. Problem solved." Bob
On Fri, 2 Apr 2021, Bob Proulx wrote:> I would be inclined to act as a BOFH and replace scp withI keep it? it?s useful to push to machines before they have rsync (e.g. to push updated sources.list, keys, etc).> a script wrapper that called rsync. "There! I deliverd an scp that > handles resume. Problem solved."Definitely! (Except? one point against rsync is its licence.) I?ve named mine rcp though. https://evolvis.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=shellsnippets/shellsnippets.git;a=blob;f=mksh/rcp;hb=HEAD It does quite some things (e.g. -a --numeric-ids) by default but parses options, to some degree, to disable them again if needed. (Oh, I see I need to add the recent additions to usage?) Enjoy, //mirabilos -- Infrastrukturexperte ? tarent solutions GmbH Am Dickobskreuz 10, D-53121 Bonn ? http://www.tarent.de/ Telephon +49 228 54881-393 ? Fax: +49 228 54881-235 HRB AG Bonn 5168 ? USt-ID (VAT): DE122264941 Gesch?ftsf?hrer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg ************************************************* Mit dem tarent-Newsletter nichts mehr verpassen: www.tarent.de/newsletter *************************************************
On Fri, Apr 2, 2021 at 11:52 PM Bob Proulx <bob at proulx.com> wrote:> > rapier wrote: > > User demand and it's a deliverable for a project. Like I said in my first > > message I know that rsync can do basically the same thing but ya know, > > deliverables need to be delivered. Just thought I'd share the results. > > I would be inclined to act as a BOFH and replace scp with a script > wrapper that called rsync. "There! I deliverd an scp that handles > resume. Problem solved." > > BobRewriting security sensitive binaries to solve a problem that is already solved at the command line, with a great deal more flexibility and power, is also usually a really, really bad idea.
On 4/2/21 11:42 PM, Bob Proulx wrote:> rapier wrote: >> User demand and it's a deliverable for a project. Like I said in my first >> message I know that rsync can do basically the same thing but ya know, >> deliverables need to be delivered. Just thought I'd share the results. > > I would be inclined to act as a BOFH and replace scp with a script > wrapper that called rsync. "There! I deliverd an scp that handles > resume. Problem solved." > > Bob > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev >While not a bad idea (and I did think about) this is part of an NSF grant (I'm the PI - NSF Award #2004012). Since I want to keep getting grants I need to do the work (and I'd be screwing taxpayers out of their money). This is one of the smaller deliverables but I thought it would be worth sharing with the community.