how do i scp .dotfiles??
utisoft at gmail.com
Sat Aug 28 09:26:26 UTC 2010
On 28 August 2010 08:02, Gary Kline <kline at thought.org> wrote:
> On Fri, Aug 27, 2010 at 09:13:06PM +0200, Polytropon wrote:
>> On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten <Ggatten at waddell.com> wrote:
>> > Rename them, copy, then rename them back?
>> Not good for a whole bunch of files; in this case: tar them together,
>> transfer the archive, untar it; rename afterwards if needed. :-)
> If i'm going to rename, say, ~/.Plans to ~/Plans and ~/.HowtoI18 to
> ~/HowtoI18, I may just scp -rp every ~/[.] file. the idea of using
> find to collect a tarball may work.
$ tar cjf - *dotfile* | ssh machine 'tar xvjf -'
Much less fiddly!
More information about the freebsd-questions