Page 1 of 1

Get a list of empty folders via email?

Posted: Tue May 14, 2024 2:49 pm
by emalenfant
I have a few profiles created to sync up some data archives, and pick an arbitrary date.
Sometimes, the date does not have any files in it, as the original backup task to drop the file into the source folder, hasn't completed yet by the time the profile is running.

Is there a way to get a list of any/all right-hand side folders which sync'd, but have zero files?

I've take a look at pascal script, and thats outside my wheelhouse.

Re: Get a list of empty folders via email?

Posted: Wed May 15, 2024 8:41 am
by tobias
Hi,
that's really difficult. What do you mean with "pick an arbitrary date"? Does the profile use the same left and right base paths every time?

What can be done is to send an email if there were no files to copy.

Re: Get a list of empty folders via email?

Posted: Wed May 15, 2024 2:26 pm
by emalenfant
Let me clarify with an example.

Left side would have a folder depth of maybe 2 deep.

\\server\backups\$YEAR-MONTHNUM-todaysdate\hostname\backupfile.zip

Right hand side is the same, same variables. the arbitratry date could be the 1st, or the 15th...

right side, I need to find the hostname which may have no files copied.