prevent resolving of symlinks during synchronize
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
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