FFS batch file in task scheduler causes multiple backups daily instead of one

Get help for specific problems
Posts: 16
Joined: 1 Sep 2022

Webguy1

Screen captures:
https://imgur.com/a/fvYoTuE

As you can see, yesterday I had several backups from the FFS batch file which runs from task scheduler. This happens regularly, usually a few days after my last reboot and continues until I reboot.

The screen grabs show all the log files, the task in task scheduler, and the instances running in task manager.

Help?

Windows 11. Newest FFS.

Thanks.
Posts: 1038
Joined: 8 May 2006

therube

(heh. i got a message about "erotic" or some such when i went to load your pic.)
Posts: 1038
Joined: 8 May 2006

therube

Post the contents of your .ffs_batch.

Does the .ffs_batch need a line in there telling it to Quit, AutoClose="true, is it?
Note
Be sure to enable Auto-Close and Ignore errors/Cancel if you schedule the ffs_batch file to run under a different user account. With no one there to close the results dialog manually, the task would hang indefinitely.
https://freefilesync.org/manual.php?topic=schedule-batch-jobs
User avatar
Posts: 4056
Joined: 11 Jun 2019

xCSxXenon

It seems like FFS never finishes, and the task is retrying it over and over
Posts: 16
Joined: 1 Sep 2022

Webguy1

It seems like FFS never finishes, and the task is retrying it over and over xCSxXenon, 18 May 2023, 15:45
Hmm. Each of the log files shows completed. Example:
Hugh-Thumbdrive-Backup  5/17/2023  1:30:02 PM
Completed successfully
Items processed:         2 (11.0 GB)
Total time:         00:17:53
1:30:02 PM     Info:     Using non-default global settings:
    Fail-safe file copy: Disabled
    Copy locked files: Enabled
1:30:07 PM     Info:     Comparison finished: 133,007 items found – Time elapsed: 00:00:04
1:30:08 PM     Info:     Synchronizing folder pair: Mirror ->
    C:\Users\hugha\Documents
    D:\Documents
1:30:08 PM     Info:     Deleting file "D:\Documents\Outlook Files\~Outlook.pst.tmp"
1:30:08 PM     Info:     Updating file "D:\Documents\Outlook Files\Outlook.pst"
Windows 11 (Version: 22H2) – hugha (Hugh_2022_Dell) – Inspiron 14 7425 2-in-1 – Dell Inc.
Posts: 16
Joined: 1 Sep 2022

Webguy1

Post the contents of your .ffs_batch.

Does the .ffs_batch need a line in there telling it to Quit, AutoClose="true, is it?
Note
Be sure to enable Auto-Close and Ignore errors/Cancel if you schedule the ffs_batch file to run under a different user account. With no one there to close the results dialog manually, the task would hang indefinitely.
https://freefilesync.org/manual.php?topic=schedule-batch-jobs therube, 18 May 2023, 15:38
It may be the autoclose setting. Please review the below:
<?xml version="1.0" encoding="utf-8"?>
<FreeFileSync XmlType="BATCH" XmlFormat="17">
    <Compare>
        <Variant>TimeAndSize</Variant>
        <Symlinks>Exclude</Symlinks>
        <IgnoreTimeShift>1</IgnoreTimeShift>
    </Compare>
    <Synchronize>
        <Variant>Mirror</Variant>
        <DetectMovedFiles>false</DetectMovedFiles>
        <DeletionPolicy>Permanent</DeletionPolicy>
        <VersioningFolder Style="Replace"/>
    </Synchronize>
    <Filter>
        <Include>
            <Item>*</Item>
        </Include>
        <Exclude>
            <Item>\System Volume Information\</Item>
            <Item>\$Recycle.Bin\</Item>
            <Item>\RECYCLE?\</Item>
            <Item>\Recovery\</Item>
            <Item>*\thumbs.db</Item>
            <Item>*.log*</Item>
            <Item>*.temp</Item>
            <Item>*tmp.*</Item>
            <Item>\Web and Websites Here\OLD NO LONGER CLIENTS\*.*</Item>
        </Exclude>
        <TimeSpan Type="None">0</TimeSpan>
        <SizeMin Unit="None">0</SizeMin>
        <SizeMax Unit="None">0</SizeMax>
    </Filter>
    <FolderPairs>
        <Pair>
            <Left>C:\Users\hugha\OneDrive\Desktop</Left>
            <Right>\\readyshare\USB_Storage\Dell-Backups\Hugh\Desktop</Right>
        </Pair>
        <Pair>
            <Left>C:\Users\hugha\Documents</Left>
            <Right>\\readyshare\USB_Storage\Dell-Backups\Hugh\Documents</Right>
        </Pair>
    </FolderPairs>
    <Errors Ignore="true" Retry="0" Delay="5"/>
    <PostSyncCommand Condition="Completion"/>
    <LogFolder/>
    <EmailNotification Condition="Always"/>
    <Batch>
        <ProgressDialog Minimized="false" AutoClose="false"/>
        <ErrorDialog>Show</ErrorDialog>
        <PostSyncAction>None</PostSyncAction>
    </Batch>
</FreeFileSync>
Do I need to change this to "true"?

<Batch>
<ProgressDialog Minimized="false" AutoClose="false"/>
<ErrorDialog>Show</ErrorDialog>
<PostSyncAction>None</PostSyncAction>
</Batch>
User avatar
Posts: 4056
Joined: 11 Jun 2019

xCSxXenon

Yes! They are finishing but never closing
Posts: 16
Joined: 1 Sep 2022

Webguy1

Yes! They are finishing but never closing xCSxXenon, 18 May 2023, 18:21
I changed it, I'll track how it goes, thanks for the assistance.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

Fixed in the next version: viewtopic.php?t=8535#p39347
Posts: 16
Joined: 1 Sep 2022

Webguy1

Thanks! Editing the file above manually from autoclose = false to true did fix it for me.