Topic "synchronize not ignoring "/.svn" folder, filemask set"

Author Message
_sam_
[View user's profile]

Joined: 2014-01-20
Posts: 1
I'm using WinSCP to deploy a site to a FTP folder. The synchronize command is this:

Code:
synchronize -filemask="|/.svn" remote src\wwwroot /


When I run this locally on my Windows 7 laptop it works fine. It deploys files and ignores all .svn folders. However, when I run the exact same command (inside same text file) on our buildserver, it does not ignore the .svn folders. We're running TeamCity on the buildserver on Windows Server 2008. I've tried using filemask "|/.svn" and filemask "|\.svn" in case it mattered.

What else can I look into as to why the filemask would be ignored? Is there something else I'm doing wrong?

Full output:

Quote:

[16:20:03]: Starting: E:\Projects\Sites\2013_mysite\tools\WinSCP\WinSCP.com /script=tools\WinSCP\Deploy_WinSCP_Script.txt
[16:20:03]: in directory: E:\Projects\Sites\2013_mysite
[16:20:03]: echo on
[16:20:03]: option batch abort
[16:20:03]: batch abort
[16:20:03]: option confirm off
[16:20:03]: confirm off
[16:20:03]: open ftp://mysite:***@1.2.3.4
[16:20:03]: Connecting to 1.2.3.4 ...
[16:20:03]: Connected with 1.2.3.4. Waiting for welcome message...
[16:20:03]: Connected
[16:20:03]: Starting the session...
[16:20:03]: Reading remote directory...
[16:20:03]: Session started.
[16:20:03]: Active session: [1] mysite@1.2.3.4
[16:20:03]: lpwd
[16:20:03]: E:\Projects\Sites\2013_mysite
[16:20:03]: synchronize -filemask="|\.svn" remote src\wwwroot /
[16:20:03]: Comparing...
[16:20:19]: Local 'src\wwwroot\stylesheets' => Remote '/stylesheets'
[16:20:19]: Synchronizing...
[16:20:19]: Local 'src\wwwroot' => Remote '/'
[16:20:19]: src\wwwroot\.svn | 0 KiB | 0.0 KiB/s | binary | 0%
[16:20:20]: src\wwwroot\.svn\all-wcprops | 3 KiB | 0.0 KiB/s | binary | 100%
[16:20:20]: src\wwwroot\.svn\dir-prop-base | 0 KiB | 0.1 KiB/s | binary | 100%
[16:20:21]: src\wwwroot\.svn\entries | 3 KiB | 4.8 KiB/s | binary | 100%
[16:20:21]: src\wwwroot\.svn\prop-base | 0 KiB | 4.8 KiB/s | binary | 0%
[16:20:21]: src\wwwroot\.svn\prop-base\favicon.ico.svn-base | 0 KiB | 2.5 KiB/s | binary | 100%
[16:20:21]: src\wwwroot\.svn\props | 0 KiB | 2.5 KiB/s | binary | 0%
[16:20:21]: src\wwwroot\.svn\text-base | 0 KiB | 2.4 KiB/s | binary | 0%
[16:20:22]: src\wwwroot\.svn\text-base\2013_mysite.sln.svn-base | 1 KiB | 2.2 KiB/s | binary | 100%
[16:20:23]: src\wwwroot\.svn\text-base\about.aspx.cs.svn-base | 0 KiB | 2.1 KiB/s | binary | 100%
[16:20:23]: src\wwwroot\.svn\text-base\about.aspx.svn-base | 13 KiB | 5.8 KiB/s | binary | 100%
[16:20:24]: src\wwwroot\.svn\text-base\careers.aspx.svn-base | 1 KiB | 5.7 KiB/s | binary | 100%
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
You are possibly using a different versions of WinSCP.

This change in 5.0.6 likely matters:
Quote:
Change: File mask that does not end with slash matches only files, not directories anymore


Make sure you terminate the mask with slash. I'd also avoid using path in the mask to exclude .svn folder no matter where it is located: |.svn/.

You can use File Mask dialog to help you with assembling the mask:
https://winscp.net/eng/docs/ui_editmask
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