Seite 1 von 1

Exclude subfolder from bidirectional file sync

Verfasst: Fr 12. Apr 2024, 13:27
von Pogle
Hi
I'm reflecting a folder and its subfolders between PC and Android tablet. It allows offline/local sync of an Obsidian vault (and shared logseq compatible data) and works very well, thanks.
But I'd like to exclude the backup folder /bak that logseq automatically creates. No matter how I phrase the exclusion it seems to process that folder regardless.

Code: Alles auswählen

//root//logseq/bak/*.*;
//root//logseq/bak/*.*
//root//logseq/bak/*
//root//logseq/bak/
I'm putting the full path in for //root// and can see these folders in the status bar as they are scanned.
Is there a right way to do this or does exclude only work on individual files?
Thanks for any help.

This has been asked beforewith no reply.

Verfasst: Fr 12. Apr 2024, 14:31
von icke1954
Try it out

Code: Alles auswählen

\bak\*

Verfasst: Fr 12. Apr 2024, 14:44
von Pogle
Ah! That seems to have done it. Using the path relative to the folder being synced.

In this case actually

Code: Alles auswählen

\logseq\bak\*
But those folders are no longer being scanned.
Many thanks for your help. :D

Verfasst: Fr 12. Apr 2024, 15:01
von icke1954
Thanks for your feedback!
Best regards icke