Topic "Synchronizing automatically includes root"

Author Message
Forecaster
[View user's profile]

Joined: 2016-12-20
Posts: 7
Location: Sweden
Recently my WinSCP was reset, probably during an update, and I lost all my servers and settings. Among these settings were my file transfer profiles.

I had a pair of profiles specifically for syncing the files of my minecraft server with my client when adding/removing mods or editing configs. I just edited a few configs and wanted to sync the changes when I found that my profiles were missing. The profiles were configured to only sync certain files such as configs and mod files. I forget exactly how they were set up.

I've been trying to re-create them, and found that even if I tell it to include three specific folders it keeps trying to sync everything in the root folder as well.

I tried working around this by excluding everything by adding a wildcard (*) in each of the exclude fields, but that caused it to ignore everything and tell me there were no differences, even though I'd specified the folders I wanted to include. Inclusion should have a higher priority than exclusion. But it seems WinSCP prioritizes exclusion for some reason.

This is how I want the profile to look: https://i.imgur.com/eDcMIVc.png
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
You can exclude the files in the root folder by using an exclude mask with a path: c:\path\to\root\folder\*.
See https://winscp.net/eng/docs/file_mask#path

The overall mask will be: mods/; scripts/; config/ | c:\path\to\root\folder\*
Forecaster
[View user's profile]

Joined: 2016-12-20
Posts: 7
Location: Sweden
Nope.

Doing this: https://i.imgur.com/c8BdZRA.png

It's still including files and directories from the root dir that are not in the "include directories" list.

This is the result: https://i.imgur.com/F4LlhGn.png

I'm doing Mirror Remote => Local by the way.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Forecaster
[View user's profile]

Joined: 2016-12-20
Posts: 7
Location: Sweden
Here is the log file

Connect => Synchronize => Change Transfer Preset => Ok to preview changes

I didn't proceed beyond the preview since it would break my local dir.

Log level is "Normal"
tower@towerofawesome.org.log (349.22 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
Please upgrade to the latest version of WinSCP first.
Forecaster
[View user's profile]

Joined: 2016-12-20
Posts: 7
Location: Sweden
I did? Just before doing that test I hit "check for updates" it told me there was an update, I downloaded and installed it and restarted the application.

Oh. It installed the update in a different location...

Sigh.
Forecaster
[View user's profile]

Joined: 2016-12-20
Posts: 7
Location: Sweden
Here, same process, actually updated the location I use this time:
tower@towerofawesome.org.log (345.06 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
Strange. It behaves differently for me with the same setup.

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.
Forecaster
[View user's profile]

Joined: 2016-12-20
Posts: 7
Location: Sweden
Here.

Process was startup => connection => sync preview

with the same preset as before
tower@towerofawesome.org.log (341.26 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
The log file shows that your file mask is mods/; scripts/; config/ | emblem*; Clicketyclack*

There's no exclude mask with the absolute path to the remote root.
Forecaster
[View user's profile]

Joined: 2016-12-20
Posts: 7
Location: Sweden
There.

Still includes files from the root.

Besides, if I have something in the whitelist it should ignore everything else by default.
tower@towerofawesome.org.log (344.17 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
You are missing *, it should be:

mods/; scripts/; config/ | emblem*; Clicketyclack*; /serversMinecraft/mods/LetsPlay/current/*

See my example above.
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