Topic "prevent resolving of symlinks during synchronize"

Author Message
jamal

Guest


Hi,

I'm successfully been using a script to synchronize my computer to a server. The server contains many symlinks to files and so these files end up on my machine twice. I would either like to copy the symlink as a symlink (which i gather is not possible), or ignore the symlink entirely.

1. Am I right that winscp cannot copy symlinks as symlinks (even if they are relative)?
2. Is there a script setting that will allow me to ignore symlinks?

Thanks!

Here is my batch file:
echo off
winscp3.com /script=getData.txt
if errorlevel 1 goto error

echo Success!
goto end

:error
echo Error!

:end

And here is getData.txt:

# if there is an error, abort right away
option batch abort
# do not prompt for permission to copy, etc
option confirm off
# ascii data
option transfer ascii

# open a connection to remote system
open user:password@system.edu

# update my local folder to match the remote folder
synchronize local "localdir" remotedir

# disconnect and exit winscp
close
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
jamal wrote:
1. Am I right that winscp cannot copy symlinks as symlinks (even if they are relative)?

No WinSCP cannot do that. It is hard to do soemthing like that on Windows.
Quote:
2. Is there a script setting that will allow me to ignore symlinks?

No yet.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License