On 1/10/07, Herbert Georg
By default, when scp copies links from a machine to another, it transfers the actual file instead. How can I make scp to create the corresponding link in the destination machine, instead of copying the file, and increasing the occupied space in disk?
Alternatively, you can tunnel tar through ssh. I keep it in a script and call it sshtar. It copies files from a remote directory into the current directory. #!/bin/sh if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then printf "\n\n\tExample:\n\n\t\tsshtar username hostname_or_ip /dir/to/copy\n\n" exit 0 fi /usr/bin/ssh $1@$2 "cd $3 ; tar cf - ." | tar xvfBp - -- Andy Harrison -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org