LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 15
Question SCP without soft links


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

-Henriette
 
Old 08-27-2004, 02:31 PM   #2
nifflerX
Member
 
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:

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


-NifflerX

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


Reply



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 12:10 PM
Soft Links varunbihani Linux - Newbie 3 06-04-2005 11:42 PM
The internet and soft links orange400 Linux - General 0 06-10-2004 03:22 AM
Soft Links tonphi Red Hat 1 09-22-2003 09:20 PM
Soft Links Resqtech Linux - Newbie 4 08-26-2001 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:25 AM.

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