Hi!
I have been using an old commercial filesync software called: "Fileback PC". It has served me good, but last update was in 2009 and it doesn't run well with Windows 11 even in compability mode, so I am trying to migrate to FreeFileSync, but I am having a problem with batch jobs.
If I make a batch job with for instance three different folder pairs and start the Compare function it compares all of them at once.
What I would like it to do is to compare folder pair one and then Syncronize that folder pair and then do compare and synchronization of folder pair two etc, like a daisy chain sequence.
This since I collect (aggregate) all my individual backup folders from the PC into one folder on my NAS and then from there also a copy that aggregated folder over onto an external drive for off line storage.
Is this daisy chain sequence setup possible to do in FreeFileSync?
Thanks and best regards from Sweden! / Anders
Daisy chain batch jobs
- Posts: 4
- Joined: 10 Mar 2024
- Posts: 4056
- Joined: 11 Jun 2019
Sure is possible, just use the "post-sync" command option to have one sync config start another one and split the pairs into individual configurations
- Posts: 2451
- Joined: 22 Aug 2012
If you want to run your left-right folder-pair Compare and Sync in sequence per pair, you can
either
• Run a batch/cmd file that starts your sync jobs in sequence, waiting for the previous job to end before starting the next sync job (via the "start" command). Something like
or
• Use the FFS option to run a post-sync command.
This can be configured in the FFS GUI in the Synchronization tab (F8) bottom-right. Choose On Completion and specify the command to be executed.
At the end of your first sync, launch sync#2 via the command line
And at the end of your second sync, launch sync#3 via the command line
Make sure to save your *.ffs_batch files after you added the On Completion command, and before actually running the (sequence of) syncs.
either
• Run a batch/cmd file that starts your sync jobs in sequence, waiting for the previous job to end before starting the next sync job (via the "start" command). Something like
start "C:\Program Files\FreeFileSync\FreeFileSync.exe" "[PathToYourFFSbatch-file]\YourBatch1.ffs_batch"
start "C:\Program Files\FreeFileSync\FreeFileSync.exe" "[PathToYourFFSbatch-file]\YourBatch2.ffs_batch"
start "C:\Program Files\FreeFileSync\FreeFileSync.exe" "[PathToYourFFSbatch-file]\YourBatch3.ffs_batch"
• Use the FFS option to run a post-sync command.
This can be configured in the FFS GUI in the Synchronization tab (F8) bottom-right. Choose On Completion and specify the command to be executed.
At the end of your first sync, launch sync#2 via the command line
"C:\Program Files\FreeFileSync\FreeFileSync.exe" "[PathToYourFFSbatch-file]\YourBatch2.ffs_batch"
"C:\Program Files\FreeFileSync\FreeFileSync.exe" "[PathToYourFFSbatch-file]\YourBatch3.ffs_batch"
- Posts: 4
- Joined: 10 Mar 2024
Thank you so much for this very helpful and extensive explaination!
Best regards from Sweden! / Anders
Best regards from Sweden! / Anders
- Posts: 4
- Joined: 10 Mar 2024
@Plerry
The Batch/cmd file approach you wrote about above does not seem to work for me, it starts all five of my FFS batch files at once when using the start command. I think it lacks an "on completion" similar type of event to wait for the current line to finish before starting the next line.
The second method you described works fine for me though!
The Batch/cmd file approach you wrote about above does not seem to work for me, it starts all five of my FFS batch files at once when using the start command. I think it lacks an "on completion" similar type of event to wait for the current line to finish before starting the next line.
The second method you described works fine for me though!
- Posts: 4
- Joined: 10 Mar 2024
Addition to the above, I had to add the "start" command also in the "On Completion" field within FFS before the path.
- Posts: 2451
- Joined: 22 Aug 2012
As you noticed, I forgot to add the /w or /wait option to at least the first two start-commands in the batch script of my previous reply.
See e.g. https://ss64.com/nt/start.html
Do not add /w or /wait to the FFS On Completion command-line, when using that route.
See e.g. https://ss64.com/nt/start.html
Do not add /w or /wait to the FFS On Completion command-line, when using that route.