Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: synchronize not ignoring "/.svn" folder, filemask set

You are possibly using a different versions of WinSCP.

This change in 5.0.6 likely matters:
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
_sam_

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

I'm using WinSCP to deploy a site to a FTP folder. The synchronize command is this:

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:


[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%