Sync

Description

Name

class Tinman.Operation.Sync

Derived from

Operation

Synchronizes the content of source to the given target directory, including file deletions.

Fields / Required

source

Type

path

Constraint

# != null

The source directory.


target

Type

path

Constraint

# != null

The target directory.

Fields / Optional

skip

Type

path[]

Default

null

Optional set of paths to use for skipping existing files and directories in source, where a skipped file or directory is treated as if it did not exist in the first place. The given paths may contain wildcards. Paths without a trailing separator are matched against files, those with a trailing separator are matched against directories.


keep

Type

path[]

Default

null

Optional set of paths to use for keeping files and directories in target, where a kept file or directory is treated as if an identical counter-part existed in source. The given paths may contain wildcards. Paths without a trailing separator are matched against files, those with a trailing separator are matched against directories.


hash

Type

bool

Default

true

Use file content hashes to detect actual modifications if both file length and timestamp are not identical?


parallel

Type

number

Constraint

# >= 1

Default

8

The number of threads to use for copying.


timestamp

Type

number

Constraint

# >= 0

Default

0

If the timestamps of two files differ by this delta in milliseconds or less, the timestamps are considered to be equivalent.