Page 1 of 1

Identify files updated/moved to subfolder

PostPosted: Tue Oct 01, 2024 1:45 pm
by deanfx
I am going to try my best to not over-complicate explaining this lol, so be patient with me here.

In short:

I have a hazel rule that monitors one directory (local obsidian vault folder); and when files are found to be new and/or modified, it makes a copy of that file, retaining the folder structure in a backup folder I have within OneDrive. It works great...now for the issue.

I occasionally may move a file (that hazel already copied) from lets say "Quick Notes" folder, to the "Archive" folder. Now one of 2 things happen, either it will now duplicate the copy of the original file in both locations, or it will just update the file in the original copied location. So I am wondering, if there is a way to set in the hazel rules, to somehow have it not do that, and if the file is moved on the source, to replicate it on the destination side.

Not sure if this is even possible, or if this is just a extra parameter I need to add to my existing rule; but figured this would be the best place to ask.

An example of the existing rule I mentioned above:
Image

Re: Identify files updated/moved to subfolder

PostPosted: Wed Oct 02, 2024 9:14 am
by Mr_Noodle
Have you considered using the sync action? There's a chapter on syncing folders in the manual that should explain it in more detail.

Re: Identify files updated/moved to subfolder

PostPosted: Wed Oct 02, 2024 10:16 am
by deanfx
Yeah, shortly after I posted this and was waiting for approval, I kept digging around and my eyes suddenly landed on the "sync" option instead of copy and facepalmed myself for several minutes LOL. My apologies, appreciate the reply!

This did do the trick :-)