Question about Copying files over to a new server from anoth

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
myleow
Forum Contributor
Posts: 194
Joined: Mon Jun 21, 2004 7:05 pm
Location: California

Question about Copying files over to a new server from anoth

Post by myleow »

I am using scp command to copy files over to a new server.

Current i am using

scp -r directoryA user@newserver:~/

The problem i am encountering is there are symbolic link directories in the directoryA and when it goes over to the new server, it will create it as a directory instead of a symbolic link.

Is there a way to copy entire directory and keep the symbolic link directory as such on the new server?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

You could make it a tarball before you transfer it.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply