I've been asked about preserving symbolic links using the rsync method to a samba share. I wanted to answer that question in this thread so anyone concerned can take what they can from my thoughts.
This is a backup script and to my knowledge there is not a way to preserve symbolic links using rsync to a samba share in this manner. It may be possible but the way I look at it is that it's not necessary. As said before, this is a backup script and preserving of symbolic links are not necessary. If you need to restore from one of the backup points, you would rsync over back to the mail server writing over top of the existing information and the symbolic links would still remain intact. If you were doing a disaster recovery, a complete reinstall would be necessary and then you would rsync back to the mail server from backup essentially restoring information. Again, in that case, the symbolic links would already be there and would not be necessary to restore.
Ultimately, the need to backup the symbolic links would not be necessary. Any restore would place the relevant data back in the correct place and the symbolic existing links would look to it.
Again, enjoy. |