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

Re: No soft-links for scp?



2009/2/27 Dotan Cohen <dotancohen@gmail.com>:
[snip]
> Thanks, but this copies the actual files, whereas I only want system
> links to the files. I don't have enough room on this laptop for the
> files themselves, but I do need to have a browseable tree so that I
> can know on which remote system, and where in that system, the files
> are.
>
> Thanks!

What are your actual needs here?  You have asked an implementation
specific question rather than a solution to a problem.

For example, if your use case is 'know on which remote system, and
where in that system, the files are' and the browsable is something you
are assuming, then perhaps something simple like this could work:

$ find / > `hostname`.find.out && scp `hostname`.find.out me@laptop:~/

Then it would simply be a matter of grepping the file for your locations.
`find` has options to print much more information than just the filename
if you need that (check the -printf options).

There are options... what's the actual _problem_ you're trying to solve?

cheers,
Owen.


Reply to: