SCP from one solaris box to another without copying links

Thread Tools Search this Thread
Operating Systems Solaris SCP from one solaris box to another without copying links
# 1  
Old 04-28-2006
SCP from one solaris box to another without copying links

I am doing a scp (directory)from one solaris box to another.The problem is that all links present in that directory also get copied .I do not want the links to get copied .currently I am using
following syntax

scp -rvp pcserver

I checked the man pages for scp ,but i am not able to find any option .

Please help me in this regard
# 2  
Old 05-03-2006
You could use the find command to find all files that are links and output them to a file. Then use tar (with exclude option using the file you created). Then scp the tar file and then go to the server and extract.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Copying the file from UNIX box to other

Hi Folks , I have two different unix boxes named lonrs2345 and lonrs2367 now i want to copy a file from lonrs2345 to lonrs2367 , now below is the location of file which i want to copy lonrs2345 :- /opt/app/fgty/abc.xml lonrs2367 :- /opt/app/fgty/ Now as you can see above i want to... (2 Replies)
Discussion started by: n4noida
2 Replies

2. How to Post in the The UNIX and Linux Forums

Copying , renaming the file from windox box and ftp to Linux box

Hello my dear friends, Two file are auto generated from mon - fri at different directories on same windows box.Every day i have to copy the file, rename it (specific name)and ftp it to linux box specified directory. is it possible to automate this process,If yes this has to be done from windows... (1 Reply)
Discussion started by: umesh yadav
1 Replies

3. Shell Programming and Scripting

Copying all files from one to the current box

Hi, Please help me with script that does the following: i)The script will be called from server path:- /apps/di/dev/scripts ii)The script will copy all the files starting from SPCA_ALL_CPC*.csv from another server and move to /apps/di/dev/import/regrind_SPCA_new Many thanks (1 Reply)
Discussion started by: Alok Ranjan
1 Replies

4. Shell Programming and Scripting

scp links! wrong permissions

I had to copy /bin from one server to another because i accidently removed /bin ... now all copied and working but some of the soft links seems to have been created as file and their permissions set to 777 by default.. how can i recopy those ones? or change their permission to be same as the source... (4 Replies)
Discussion started by: halacil
4 Replies

5. Shell Programming and Scripting

script for Copying files from one server to another using scp

Hi Scripting experts, I am new to the unix scripting. Please help me out for solving the condition given below I am trying to develop a script for Copying files which are getting generated in server A to server B using scp. In serverA files are generating as for eg abc1.txt, abc2.txt,... (5 Replies)
Discussion started by: rohithji
5 Replies

6. Debian

scp not preserving properties and links

I'm trying to get a number of old disks on HP-UX 10.2 copied over to a new Debian machine which has a NAS on it. The HP does not have rsync, but does have scp. Scp unfortunately does not always preserve permissions, and does not save links which were on the disk. Apparently rsync has a flag... (3 Replies)
Discussion started by: PasadenaDave
3 Replies

7. Shell Programming and Scripting

copying links/files using rsync command

Hi I am using rsync command to copy the likes like bwlow rsync -vaR krish/harris/test data/charles I am running this script in test1 folder but the krish/harssis /test is existed in test2 folder. So when i run this command am getting the error like rsync: link_stat... (1 Reply)
Discussion started by: KiranKumarKarre
1 Replies

8. UNIX for Dummies Questions & Answers

I need an scp command from a unix box to a windows box.

scp file="myfile.txt" todir="user@somehost:(M:drive:/somepath/)"/ Not sure I need it to go to a specific drive on the windows box (1 Reply)
Discussion started by: xgringo
1 Replies

9. UNIX for Dummies Questions & Answers

difference between AIX box and Sun Solaris box

Hi, I need a clarification. Is there any difference between AIX box and Sun Solaris box? The bzip command with -c option works in AIX box and the same does not work in Sun Solaris box. Can anyone please explain if there is an implementation difference in both these boxes for the shell... (1 Reply)
Discussion started by: nisha4680
1 Replies
Login or Register to Ask a Question

Featured Tech Videos