Computing.Net > Forums > Unix > recursive link copy

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

recursive link copy

Reply to Message Icon

Name: former33t
Date: May 4, 2004 at 16:17:08 Pacific
OS: Solaris 8
CPU/Ram: ultra-10
Comment:

I am trying to perform a recursive copy of a directory that includes links in a subdirectory. Is there any way to do this from the command line without scripting?

I figured out how to do it with a script (probably poorly written), but would like to find out if there is a way to do it from the command line (for future reference).

Thanks in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: Dlonra
Date: May 4, 2004 at 17:18:12 Pacific
Reply:

"links in a subdirectory" - symbolic/hard links which you want/not copy as links??

have you tried "man cp"?


0

Response Number 2
Name: former33t
Date: May 5, 2004 at 11:38:25 Pacific
Reply:

Yes, I tried the man pages.

I am looking at symbolic links in a subdirectroy that I want to recursively copy over to a new filesystem on the same system. The place I work at uses a netapp server, so each home account is on its own filesystem (according to a 'df .'). I would like to be able to copy over application proprietary configuration directories from one user's home account to another without having to manually relink the files. I get the message that the system could not access the symbolic link, copy failed.

Am I missing something really simple here?


0

Response Number 3
Name: Dlonra
Date: May 5, 2004 at 14:38:23 Pacific
Reply:

"the system could not access the symbolic link"
perhaps the message was
"No such file or directory"?

What does
ls -l a_sym_link
display?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: recursive link copy

copy recursively a directory (only www.computing.net/answers/unix/copy-recursively-a-directory-only-/5219.html

Recursive mget? www.computing.net/answers/unix/recursive-mget/5904.html

Script in ksh www.computing.net/answers/unix/script-in-ksh/3844.html