2008/11/12 Garry Smith <[EMAIL PROTECTED]>:
>
> tar -cvzpf - ./bin ./boot ./dev ./etc ./lib ./lost+found ./media ./mnt ./opt
> ./proc ./root ./sbin ./sys ./usr ./var | ssh -p8889 [EMAIL PROTECTED] "cd
> /mnt/gentoo; tar -xzpf -"
>
> Unfortunately the symbolic links all came out as 0  byte files (not sym
> links), so in the end I fell back on rsync (over SSH) which did the job.
>
> How do you normally preserve symlinks using tar piped over SSH?

I think the symlinks shouldn't get affected by the tar+ssh transfer.
There is some tar option that preserves stuff. Take a look at man tar.
I use tar to do regular backups of my complete system and restored it
at least one time without problems. When I am back home I can look up
the command I use.

-- 
Regards,
Daniel

Reply via email to