Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-28-2004, 06:37 AM   #1
LQ Newbie
Registered: Sep 2003
Location: Copenhagen
Distribution: MDK 10;Ubuntu 5.04
Posts: 25

Rep: Reputation: 15
Question SCP without soft links

Is it possible to avoid copying soft links when using scp? I want to copy a user directory and it keeps going in circles.

Old 08-27-2004, 03:31 PM   #2
Registered: Dec 2003
Distribution: RedHat 8.0, 7.1 and Enterprise WS 3,4
Posts: 94

Rep: Reputation: 16
The best way I know to get around this problem is to tar (or tar and gzip) the entire directory that you want to move. Then scp the tarred file to your new location. Then untar the file. So if you wanted to move the directory <folder> and <folder> contained soft links:

tar cvpf folder.tar folder
scp folder.tar <username>@remote.machine
ssh <username>@remote.machine
tar xvpf folder.tar


Last edited by nifflerX; 08-27-2004 at 03:41 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
links (hard links and soft links..) sachitha Programming 1 08-10-2005 01:10 PM
Soft Links varunbihani Linux - Newbie 3 06-05-2005 12:42 AM
The internet and soft links orange400 Linux - General 0 06-10-2004 04:22 AM
Soft Links tonphi Red Hat 1 09-22-2003 10:20 PM
Soft Links Resqtech Linux - Newbie 4 08-26-2001 11:00 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration