[Cialug] scp w/full path

David Champion dchamp1337 at gmail.com
Mon Mar 3 10:35:02 CST 2014


Or... copy your cmd into "sync_my_files_i_am_lazy.sh"

In one of the first Unix books I read, the author talked about Artificial
Laziness vs. True Laziness. In the first, you're too lazy to write the
script so you re-do your work every time, in the second, you create the
script and can be lazy in the future.

-dc


On Mon, Mar 3, 2014 at 10:29 AM, Jeffrey Ollie <jeff at ocjtech.us> wrote:

> On Mon, Mar 3, 2014 at 10:22 AM, L. V. Lammert <lvl at omnitec.net> wrote:
> > On Mon, 3 Mar 2014, Dave Hala wrote:
> >
> >> Try:
> >>  scp -r /var/lib/the/path/* root at host.name.com:/usr/share/other/path
> >>
> >> :) Dave
> >>
> > That's WAY too much typing - exactly what I am trying to avoid <g>!
>
> If this is something that you need to do repeatedly, the real solution
> is to set up a configuration management system like Salt, Puppet, or
> Ansible.  Personally I prefer Salt but your mileage may vary.
>
> --
> Jeff Ollie
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>


More information about the Cialug mailing list