Re: copying multiple, unrelated files with scp
From: Nico Kadel-Garcia (nkadel_at_comcast.net)
Date: 12/22/03
- Previous message: Nico Kadel-Garcia: "Re: Want unusual config..."
- In reply to: Chris Mattern: "Re: copying multiple, unrelated files with scp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 22 Dec 2003 10:22:00 -0500
"Chris Mattern" <syscjm@gwu.edu> wrote in message
news:3FDBDE90.5010409@gwu.edu...
> jonathan wrote:
> > hey,
> >
> > I have a usability problem with ssh. I want to copy multiple,
> > *unrelated* files from one system to another, and was wondering how I
> > could do this without going through authentication multiple times, ie:
> >
> > scp user@host:/path/to/file/1 /tmp/1
> > scp user@host:/path2/to/file2/2 /tmp/2
> >
> > ie - I can't use wild cards, and I can't use the '{.,.,.,}' syntax
> > because there may be thousands of these files.
Write a shell script?
How are you selecting which files to pull down and which ones not to?
> > inside of /tmp/listwithfilenames, and avoid the overhead of logging in
> > 8,000 times.
Definitely learn to use ssh-agent and authorized_keys: it will save you that
excess logging in.
> Use sftp instead. sftp has a provision for batch files.
Also workable. sftp, and scp, don't deal well with symbolic links. Really
consider using "rsync" if you want to copy links as instead of as whatever
they point to.
- Previous message: Nico Kadel-Garcia: "Re: Want unusual config..."
- In reply to: Chris Mattern: "Re: copying multiple, unrelated files with scp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|