<div dir="ltr">Is it possible to preserve Windows symlinks when backing up from NTFS to NTFS volumes or any other for that matter?<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">I am running rsync in Ubuntu in Windows Subsytem for Linux on Windows 10 backing up a local NTFS volume to an external NTFS volume (and also to a remote Unix server).</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">The source NTFS volume has symlinks created in Windows using:</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">    mklink the\link the\file</div><div class="gmail_signature" data-smartmail="gmail_signature">    mklink /d the\link the\directory</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">I am running rsync within a long shell script with the command:</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">    rsync</div><div class="gmail_signature" data-smartmail="gmail_signature">    --verbose --archive --checksum --itemize-changes --human-readable</div><div class="gmail_signature" data-smartmail="gmail_signature">    --delete --delete-excluded --partial --progress --stats</div><div class="gmail_signature" data-smartmail="gmail_signature">    --exclude-from='ignore.txt'</div><div class="gmail_signature" data-smartmail="gmail_signature">    source/ destination</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">The symlinks are copied to the external NTFS partition and have the same name but no functionality. Windows doesn't recognise them as symlinks, doesn't know what to do with them and there is no apparent difference between symlinked directories and files.</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">I tried creating the symlinks with relative paths on the source volume but rsync generated an error and refused to complete. Using --copy-links instead of --links (implicit in --archive) gives the expected behaviour but I would prefer to preserve symlinks rather than replace them with their linked contents.</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">At this point I'm not sure if it's a limitation of rsync and NTFS compatibility or whether I'm missing something.</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">+ + + + + + + + + + + + + + + + + +<br><br>Email: <a href="mailto:edwinbradford@gmail.com" target="_blank">edwinbradford@gmail.com</a><br><br>Tel.: +44 (0)7981 873 771<br><br>+ + + + + + + + + + + + + + + + + +</div></div></div>