Topic "Synchronize in command line"

Author Message
tinti

Guest


I would like to use the synchronize method in a batch file but I cannot set the synchdelete option as specified in the help. Obsolete files are deleted, if option 'synchdelete' is on.

Look at the help synchronize commmand:
Code:

winscp> help synchronize
synchronize local|remote|both [ <local directory> [ <remote directory> ] ]
  When the first parameter is 'local' synchronises local directory with
  remote one. When the first parameter is 'remote' synchronises remote
  directory with local one. When the first parameter is 'both' synchronises
  directories one against the other.
  When directories are not specified, current working directories are
  synchronized.
  Obsolete files are deleted, if option 'synchdelete' is on.
  Note: Overwrite confirmations are always off for the command.
effective options:
  transfer, synchdelete, exclude, include
examples:
  synchronize remote
  synchronize both d:\www /home/martin/public_html


When I try to activate synchdelete I get:
Code:

winscp> synchdelete on
Unknown command 'synchdelete'.
winscp> synchdelete
Unknown command 'synchdelete'.
winscp>


Thanks for help,

tiNti
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
The command is:
option synchdelete on|off
_________________
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