Reputation: 932
I'm trying to rsync my website to the server, while preserving some symlinks. I have reade some documentation and this should do the trick
rsync -vra --links
Except for one problem: It doesn't copy symlinks that are not directed to a folder, but to a file (.php in this case, but I don't think that is important). It basically breaks.
This link works:
htdocs/content/uploads -> /data/sharedstorage/uploads
This link gets skipped
htdocs/content/config.php -> /data/sharedstorage/config.php
Does anyone know how I can fix this?
P.S: I want to keep the symlinks, so I don't want to copy the files that the original symlink links to.
Upvotes: 0
Views: 107
Reputation: 932
It seems it WILL transfer them as symlinks. Only the feedback that rsync gives doesn't recognise the symlinks. Probably because they have an extension. And thus it will see it as files ...
So the problem is not really a problem after all. More like a "bug" within the verbose function in rsync
Upvotes: 0