Skip to content
Permalink
Browse files
Added '--exclude', '.obsidian' to RSync section
Added '--exclude', '.obsidian' to RSync section to prevent accidental overwriting of hidden Obsidian settings folder which contains Settings, Themes, Plugins, Snippets.
  • Loading branch information
janpeeters70 committed Feb 18, 2021
1 parent 599acb0 commit ff30491f31cec81d8b2a3b01cf2bb5ec18c970d2
Showing with 1 addition and 0 deletions.
  1. +1 −0 bear_export_sync.py
@@ -440,6 +440,7 @@ def rsync_files_from_temp():
'--exclude', 'BearImages/',
'--exclude', '.Ulysses*',
'--exclude', '*.Ulysses_Public_Filter',
'--exclude', '.obsidian',
temp_path + "/", dest_path])
else:
subprocess.call(['rsync', '-r', '-t', '-E',

1 comment on commit ff30491

@linxule
Copy link

@linxule linxule commented on ff30491 Feb 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding this! I am also using Obsidian along with Bear.

On a related note, do you have any tips for setting up the Launch Agent for the script to enable regular auto sync in the background? I keep running into issues with permission errors - where after sync, Obsidian is not able to write to the files; or the script does not have permission to write files after I manually reset permission to Obsidian to write the files (in Dropbox folder). Many thanks!

Please sign in to comment.