.SyncIgnore not working


Recommended Posts

I'm not sure if I'm doing something wrong, but it seems .SyncIgnore is being ignored by my client.

I created a subdirectory called TEST in a folder that I'm currently syncing between multiple computers.

I created a file called .SyncIgnore in that subdirectory and wrote just one line of text, which read:

test.txt

I then created a file called "test.txt" in my TEST folder. So here's what my directory looks like:

  • .SyncIgnore (with one line reading test.txt)
  • test.txt

Test.txt synced with my other machines.

I also tried numerous variations on this theme (placing .SyncIgnore in the root of my sync folder and trying to ignore TEST/test.txt, etc.), as well as every wildcard combination I could think of.

I'm running BTSync v 1.1.42 on all my machines.

What am I doing wrong?

Link to comment
Share on other sites

.SyncIgnore files are created automatically by Sync, and are only present in the root folders you're syncing. The rules within these root .SyncIgnore files apply to the files & sub-directories within the folder tree.

Creating additional .SyncIgnore files in sub-directories of folder you're syncing will have no affect - you need to add all your exclusion rules to the .SyncIgnore file in the root folder you're syncing.

There are a wealth of existing topics on how to do this in the forum (just search for "syncignore"), for example this one

Link to comment
Share on other sites

.SyncIgnore files are created automatically by Sync, and are only present in the root folders you're syncing. The rules within these root .SyncIgnore files apply to the files & sub-directories within the folder tree.

Creating additional .SyncIgnore files in sub-directories of folder you're syncing will have no affect - you need to add all your exclusion rules to the .SyncIgnore file in the root folder you're syncing.

There are a wealth of existing topics on how to do this in the forum (just search for "syncignore"), for example this one

Thank you so much for your help. Do you know the proper syntax for ignoring .git repositories that appear in subdirectories of my root sync folder? .git repositories are subdirectories themselves.

So their structure is:

root/subdirectory/.git/*

I've tried (all in the .SyncIgnore in the ROOT directory auto-generated by BTSync):

  • .git
  • .git/
  • .git/*
  • *.git
  • *.git/
  • *.git/*
  • subdir/.git
  • subdir/.git/*
  • /subdir/.git
  • /subdir/.git/*
  • */.git
  • */.git/*

But .git is still syncing.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.