0
0
DCDaniele Cariboni
The first code will copy all the files from your local 'localfolder' to the remote 'target' directory. Symlink will not be included.
The second code will copy the symlink form your local 'localfolder' to the remote 'target' directory. Symlink will be copied as regular files
tar zcvf - ./localfolder/ | ssh remoteserver "tar xzf - -C /path/to/target"
#to copy symlink as files
tar zcvfh - ./localfolder/ | ssh remoteserver "tar xzf - -C /path/to/target"