Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am getting this message with rsync:

symlink has no referent: "/a/path"

Well, rsync is right: in the source filesystem, the (symbolic) link is pointing to a non-existent location. That is intended. The target of the link only exists in the destination filesystem. And I want rsync to ignore that fact and create the symlink in the destination.

How can I force rsync to do that?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

Use -a option with rsync.

It will copy the broken symlinks too.

Something like this:

 # rsync -av source host:destination
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.