FreeFileSync同步定时执行
阅读原文时间:2023年07月14日阅读:1

Schedule a Batch Job

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

  2. 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.

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

  4. 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%\FreeFileSync\Logs.
    Additionally, FreeFileSync always stores the result of the last
    synchronization in file LastSyncs.log (up to a user-defined size, see Expert Settings).

  5. Set up the FreeFileSync batch job in your operating system's 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"

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>\AppData\Roaming\FreeFileSync, or in the case of the SYSTEM account from
    C:\Windows\System32\config\systemprofile\AppData\Roaming\FreeFileSync.

  • Open Launchpad and run Automator.
  • Create a new Calendar Alarm.
  • Drag and drop the ffs_batch file on the workflow panel.
  • Drag and drop action Files & Folders/Open Finder Items and add it to the workflow.
  • Go to File → Save… and save the 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.

  • 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.exe .ffs_batch


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

  • Search the Ubuntu Unity Dash for Scheduled tasks

  • Enter the command:
    /FreeFileSync .ffs_batch

  • Select X application since FreeFileSync requires access to GUI

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章