How to make rsync copy actual data instead of symlinks?

12

3

In the source directory I have some symbolic links. These links point to some paths and data is present in those paths also; but using rsync it is copying only the link files, not the data that is present in the path.

lrwxrwxrwx 1 lafter lafter   58 Sep 26 16:57 8770 -> ../../../../.sites_repository/brest/8770/3.2.08.05.b-b0001
lrwxrwxrwx 1 lafter lafter   59 Sep 26 16:57 bootdvd -> ../../../../.sites_repository/colombes/bootdvd/12.1.013.000

Any solutions?

Hemant Gorantla

Posted 2017-10-13T04:47:10.060

Reputation: 121

Question was closed 2019-12-29T15:51:36.047

Try it with the explicit paths rather than the dotted back path or whatever and see what result you get for a simple test. – Pimp Juice IT – 2017-10-15T23:09:51.750

5

Does this answer your question? rsync and symbolic links

– Ryan – 2019-12-21T19:58:10.440

Answers

13

man rsync says:

-L, --copy-links    transform symlink into referent file/dir

xenoid

Posted 2017-10-13T04:47:10.060

Reputation: 7 552

1Thanks. This copied the symbolic links target's content. – Rakesh Gupta – 2019-05-01T02:57:35.637