Realtime sync does not create new folders by date if date changes

Get help for specific problems
Posts: 4
Joined: 22 Jan 2023

TushyBhutt

I have realtime sync running in the background to copy files from the NAS to an external USB, which then uploads to OneDrive. The program is set up to create folders by date, like so:
\\BigData\Stable Diffusion\%year%\%Month% - %MonthName%\%Year%-%Month%-%Day%
It works fine when first starting, creating a folder if it does not exist. However, if the clock moves from 23:59:59 to 00:00:001 between the monitoring period (set to 150 seconds for now), I see a grey icon and an error message that the destination folder does not exist so it can't have files copied to it.

Is there something I should be doing, or a workaround, or is this a program limitation? Considering it can create folders as needed when starting up, I am not sure what I am doing wrong.
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

RTS doesn't have the ability to create or delete anything. When you first launch RTS, it runs the command a single time automatically, before it starts monitoring. If the FFS config that is being ran is using the same folders, this is what actually creates the folders, and then RTS is able to monitor them. When the date changes, RTS starts looking for a folder that does not exist yet and can't work anymore. There are two options:
1. Use Task Scheduler to run the FFS sync on a schedule. Only use this if you don't really need real-time monitoring.
2. Use Task Scheduler to kill the RTS session and run them again after midnight. This will then cause the FFS config to run again, creating the necessary folder with the new date. The downside to this is I don't know how you would identify a single RTS instance to shut down, if you have multiple. If you only have one, it doesn't matter. If you have multiple, it'd be easiest to kill them all and run them all again.

You could leave it as-is, with RTS running continuously, and have a scheduled task that runs the FFS right after midnight. This will create the new folder, allowing RTS to monitor it. Since RTS has been running, this should happen basically instantly.
Posts: 4
Joined: 22 Jan 2023

TushyBhutt

Thanks for the advice! I'll see if can get a task running for the specific FFS batch file to run at 00:00:01 every day