obsidian-git icon indicating copy to clipboard operation
obsidian-git copied to clipboard

[Feature]: Different Sync Period for some folders e.g. hidden folder .obsidian or folder storing PDF

Open realliyifei opened this issue 2 years ago • 0 comments

Feature Request

It’s is possible to set different Sync Period for different folders, e.g. syncing the changes in hidden folder .obsidian and folder for PDF weekly, while syncing the changes in note files daily.


The obsidian git plugin sync all the folder in vault together. It’s good except for hidden folder .obsidian since:

  1. The files always change frequently in .obsidian folder due to all the plugins and app, overwhelming my attention on the change of note files when I check the backup history
  2. It doesn’t worth to backup the .obsidian as frequent as the note files’, though I would still prefer backup it after a reasonable period (so I don’t use .gitignores to completely exclude it)

Also it would be also helpful to sync some other folders differently, say, the folder for PDFs, since the PDFs are always annotated when the users read them, it’s not always necessary to sync each change in annotation given the frequency of annotation and the large file size of PDF.

Operating system

macOS

Possible Solution

There are 2 solutions:

  1. Let user select the folder path and set a different sync period among them
  2. Let the user write different gitignore files and activate one of them by the different sync period

IMO the second solution is better since it’s give more flexibility (unlike the first solution which only works on folder path). For instance, I can write a gitignore file to ignore all the PDF files and de-activate it once a week to sync the local PDF files.

realliyifei avatar Feb 13 '22 21:02 realliyifei