Topic "script to syncronize remote to local of a particular f-type"

Author Message
[View user's profile]

Joined: 2006-12-22
Posts: 1
Location: Australia
I use a winxp machine with winscp gui to connect to a fedora machine. On the remote there are hundreds of folders and sub folders. I would like a way to sync all of the .tar.gz or .mysql files on the remote to a folder on my local xp machine.

Have read about scripting and understand that this is how this would be done but i dont know what to put in the script exactly and then how to run that script from xp.

script is eg:

open user:pass@host
option batch on
option confirm off
option synchdelete off
option transfer automatic
option include *.mysql
synchronize local D:\backup /home/httpd/vhosts

is that correct?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
Look fine. Just save it to file and pass it to WinSCP with command like:
winscp3.exe /console /script=script.txt
If you want to synchronize mysql file even in subdirectories, you need to allow that with:
option include "*.mysql; */"
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License