# Synchronizing automatically includes root

Forecaster
Joined:
Posts:
7
Location:
Sweden

## Synchronizing automatically includes root

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

martin
Joined:
Posts:
31,976
Location:
Prague, Czechia

## Re: Synchronizing automatically includes root

You can exclude the files in the root folder by using an exclude mask with a path: c:\path\to\root\folder\*.

The overall mask will be: mods/; scripts/; config/ | c:\path\to\root\folder\*

martin
Joined:
Posts:
31,976
Location:
Prague, Czechia

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
Joined:
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"

martin
Joined:
Posts:
31,976
Location:
Prague, Czechia

Forecaster
Joined:
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.

martin
Joined:
Posts:
31,976
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.

martin
Joined:
Posts:
31,976
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.

martin
You are missing *, it should be:
mods/; scripts/; config/ | emblem*; Clicketyclack*; /serversMinecraft/mods/LetsPlay/current/*