Sych files Local C: to External HDD H: - auto delete empty folder

Get help for specific problems
Posts: 1
Joined: 10 Oct 2024

FreddyDora

Hi FreeFileSync user !

Hello FreeFileSync users!

I have a simple FFS requirement but don't know how to do it, could you help?

The case:
I'm a community manager in my company. I make a lot of photo albums and videos.

I have a “Media” folder on my local C drive, where my photos and videos are stored in various folders.
Media / Photos / [Album name XY]
Media / Videos / [Filming name XY].

On the external backup hard disk H: , there is the same Media folder structure that I “synchronize” from C: -> H: with the basic “Synchronize” option in FFS.

I haven't made a backup in Mirroir mode because my C: has less capacity than my H:. That's why, once I've finished a project on my C:, I delete it from my C: so that it's only present on my H:.

To help me find my way around recent projects, and to avoid having 100 photo album or shooting folders, I've created an ARCHIVE folder where I put old finished projects. This helps me find my way around fresh projects.

My problem: Let's imagine that on the C: and H: I have a photo project that I've finished and that's in :

C: Media / Photos / [Album1]
H: Media / Photos / [Album1]

If I move this album to my ARCHIVE folder on C: and synchronize with FFS, it will ADD the NEW folder in the H: Media / Photos /Archive / [Album1] archive to H:, BUT it will leave an empty “archived” album folder in H: Media / Photos / [Album1].

The result will be :

C: Media / Photos / Archive / [Album1]
H: Media / Photos / [Album1] (empty of photos)
H: Media / Photos /Archive / [Album1]

Which is a big problem, because I end up with lots of EMPTY folders, so I have to delete them manually, checking whether they're empty or not.

Is there any way to get it to delete these empty folders whose contents it transferred during synchronization?

Thank you all for your help
User avatar
Posts: 2450
Joined: 22 Aug 2012

Plerry

You could run a post-sync command:
See viewtopic.php?t=9420
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

If I move this album to my ARCHIVE folder on C: and synchronize with FFS, it will ADD the NEW folder in the H: Media / Photos /Archive / [Album1] archive to H:, BUT it will leave an empty “archived” album folder in H: Media / Photos / [Album1]. FreddyDora, 10 Oct 2024, 14:56
I can't imagine this being the case. Except perhaps when you're using the "Update" variant. Using "Two Way" doesn't have this problem.
User avatar
Posts: 4054
Joined: 11 Jun 2019

xCSxXenon

I would switch from "update" to mirror. I know you said you don't do this because C: is smaller than H: and so H: contains files that no longer exist on C:
To get around this, I would then add an exclusion filter for the "Archive" subdirectory. When you finish a project, you will move it from its location in C: to the appropriate location inside the "Archive" folder on H:
This assumes Your C: drive is large enough to hold all in-progress project files though.
User avatar
Posts: 4054
Joined: 11 Jun 2019

xCSxXenon

Also, just get bigger drives. This allows you to eliminate this problem entirely by keeping all data on the C: drive AND, which keeps the data safer by having another full copy. I know it sounds like a privileged response from some tech nerd, and it kind of is, but I can't tell you how many clients I've dealt with that find out how little a few hundred dollars is worth, compared to the data and time lost from losing the only copy of data they had and rebuilding.