LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2014, 10:02 PM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
copy everything to another server ( with symbolic link )


I would like to copy all file in a directory from server A to server B , in server A , there are many symbolic link , how to copy those files and also the symbolic link to server B ? dose tar -zcvf can do that ? thanks
 
Old 02-04-2014, 11:01 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

yes, tar will preserve the links (as long as you don't use the -h option). Personally, I'd use rsync (over ssh) for this. eg

Code:
user@A% rsync -auvz /path/to/dir B:/path/to/somewhere
Evo2.
 
Old 02-05-2014, 02:08 AM   #3
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
deleted

Last edited by byran cheung; 02-05-2014 at 02:31 AM.
 
  


Reply


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
Copy of Symbolic link frazerjoshua Linux - Newbie 2 05-25-2009 09:25 AM
How to copy Symbolic link from linux to Windows Mini Singh Linux - General 13 05-15-2007 06:19 PM
Symbolic Link to server... LostAgain Linux - General 3 01-18-2005 01:54 PM
Copy Symbolic Link subaruwrx Linux - Newbie 1 11-01-2004 05:45 AM
Copy symbolic Link? mikeshn Linux - General 1 10-11-2003 07:36 PM


All times are GMT -5. The time now is 10:19 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration