Is there an option in rsync to copy the link and at the same time copy the directory the link points to while preserving the link?
rsync -arv --delete /var REMOTE:/backup/
where var2 is a link to /var2 inside /var directory
With above command var2 is copied as link and /var2 directory never gets copied.
I want both link and the /var2 be copied without specifying var2 as source directory.