Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Don't Scp Soft Links
nifflerX
post May 18 2004, 03:26 PM
Post #1


./configure
***

Group: Members
Posts: 76
Joined: 4-November 03
Member No.: 1,751



Hi,

Really simple question that I cannot find the answer to in the man pages or online. Is there a way to scp everything in a folder except soft links? The command I use now is:

scp ./* <remote_machine>

but if there is a soft link in the current directory then I end up with everything that was in the soft link copied to the remote machine. Thanks so much.

-NifflerX
Go to the top of the page
 
+Quote Post
Hemant
post May 27 2004, 02:36 PM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



I am thinking...I saw this post today only...


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
Hemant
post May 27 2004, 03:59 PM
Post #3


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



Yeah..the solution could be something like this
A shell script
CODE
#!/bin/bash
for x in `ls`
do
  if [ ! -L $x ]
  then
     scp -r $x "to_wherever"
  fi
done


this should work with some modification on your part.


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
nifflerX
post Jun 29 2004, 10:46 AM
Post #4


./configure
***

Group: Members
Posts: 76
Joined: 4-November 03
Member No.: 1,751



Thanks, this gives me a great start.

-NifflerX

p.s. Sorry it took so long to get back to you on this.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 12:54 PM