Skip to content
العربية
XiKey™DESKTOP
Downloads

Learn

Filters, schedules and script hooks

Filter rules

A filter rule includes or excludes files or folders by one of ten types: wildcard, regular expression, full path, folder name, extension, size (larger/smaller), date (older/newer), or file attribute. Rules can apply to the whole job or to one side only.

xksync filters export <job-id> --format lines
xksync filters import <job-id> --format gitignore --file .gitignore

Import formats: a plain list, a .gitignore file, a FreeFileSync configuration (.ffs_gui / .ffs_batch), or a GoodSync job or filter list. Export writes the job's current rules back out as a plain list.

Seven ways to start a run

Trigger What it does
Every Runs on a fixed interval (minutes)
Daily Runs once a day at a chosen time
Weekly Runs on chosen weekdays at a chosen time
Logon Runs when the background service starts (at sign-in)
RealTime Runs shortly after a file changes on a watched side
SideAvailable Runs when a side that was unreachable comes back
Idle Runs after the computer has been idle for a chosen time

The three timed triggers (Every, Daily, Weekly) are registered as a real task in Windows Task Scheduler, under \XiKey Sync\<job>, so they still run even if the window is closed — the background service only needs to be running.

Script hooks

Four hook points let you run your own command around a sync: before analysing, after analysing without syncing, before syncing, and after syncing. Each has its own timeout, and the job supplies environment variables such as the job name, the result, byte and file counts, paths, and timestamps.

xksync scripts preview <job-id> --hook before_sync
xksync scripts test <job-id> --hook before_sync

Live controls while a run is going

A running job can be paused and resumed, or have its speed limit, thread count and worker priority changed without restarting it:

xksync pause <job-id>
xksync tune <job-id> --speed 8mbps --threads 4 --priority low
xksync resume <job-id>

Next steps

  • Protected stores and .xkpack exports
  • Moving from GoodSync or FreeFileSync