FreeFileSync同步定时执行

Schedule a Batch Job

Create a new batch job via FreeFileSync’s main dialog: Menu → File → Save as a batch job…
 

Setup a FreeFileSync batch job

By default, FreeFileSync will show a progress dialog during synchronization and will wait while the results dialog is shown.
If the progress dialog is not needed, enable checkbox Run minimized. This will also skip the results dialog at the end.

Alternatively, if you want to see the progress, but not to wait at the results dialog, it’s sufficient to only select the On completion action Close progress dialog.

Note
Even if the progress dialog is not shown at the beginning, you can make it visible later during
synchronization by double-clicking the FreeFileSync icon in the notification area.

If you don’t want error or warning messages to interrupt synchronization, set Handle errors to either Ignore or Stop.
 

If log files are required, enable Save log and enter a folder path.
If the path is left empty, the logs will be saved under the current user’s roaming profile,
%appdata%FreeFileSyncLogs.
Additionally, FreeFileSync always stores the result of the last
synchronization in file LastSyncs.log (up to a user-defined size, see Expert Settings).
 

Set up the FreeFileSync batch job in your operating system’s scheduler:


A. Windows Task Scheduler:

Open the Task Scheduler either via the start menu, or enter taskschd.msc in the run dialog (keyboard shortcut: Windows + R).


Create a new basic task and follow the wizard.

Make Program/script point to the location of FreeFileSync.exe and insert the ffs_batch file into Add arguments.

Use quotation marks to protect spaces in path names, e.g. “D:Backup Projects.ffs_batch”

Windows Task Scheduler

Note

In Windows 7 Program/script always needs to point to an executable file like FreeFileSync.exe even
when the ffs_batch file association is registered. If an ffs_batch file was entered instead, the task would return with
error code 2147942593 (0x800700C1), “%1 is not a valid Win32 application”.
For Windows 8 and later this limitation does not apply and you may enter the ffs_batch file path directly into Program/script and leave out Add arguments.

If you schedule FreeFileSync to run under a different user account, note that settings (e.g. GlobalSettings.xml)
will also be read from a different path, C:Users<username>AppDataRoamingFreeFileSync, or in the case of the SYSTEM account from
C:WindowsSystem32configsystemprofileAppDataRoamingFreeFileSync.


B. macOS Automator and Calendar:

Open Launchpad and run Automator.
Launch macOS Automator
 

Create a new Calendar Alarm.
Create Calendar Alarm
 

Drag and drop the ffs_batch file on the workflow panel.
Drop FreeFileSync batch file in Automator
 

Drag and drop action Files & Folders/Open Finder Items and add it to the workflow.
Add open Finder items
 

Go to File → Save… and save the Automator job.
Save Automator job
 

The Calendar app will start automatically with the Automator
job scheduled to the current day. You can now select a different time
for synchronization or make it a recurring task.
Edit batch job in Calendar
 


C. Windows XP Scheduled Tasks:

Go to Start → Control Panel → Scheduled Tasks and select Add Scheduled Task.

Follow the wizard and select FreeFileSync.exe as program to run.


Fill the input field Run:
<FreeFileSync installation folder>FreeFileSync.exe <job name>.ffs_batch

Windows XP Task Scheduler
 


D. Ubuntu Linux Gnome Scheduled Tasks:

Install Gnome-schedule if necessary: sudo apt-get install gnome-schedule


Search the Ubuntu Unity Dash for Scheduled tasks

Enter the command:
<FreeFileSync installation folder>/FreeFileSync <job name>.ffs_batch


Select X application since FreeFileSync requires access to GUI

Gnome Scheduler

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注