genvid-sync

New in version 1.42.0.

Utility to sync two folders based on a manifest.

usage: genvid-sync [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}]
                   [--logformat LOGFORMAT]
                   {sdk-version,version,env,generate,validate,patch} ...

Positional Arguments

command

Possible choices: sdk-version, version, env, generate, validate, patch

Named Arguments

--loglevel

Possible choices: DEBUG, INFO, WARNING, ERROR

Set the script log level

--logformat

Set the script log format

Sub-commands

sdk-version

Print current SDK versions

genvid-sync sdk-version [-h]

version

Print current versions

genvid-sync version [-h]

env

Print used environment variables.

genvid-sync env [-h]

generate

Generate a manifest from a folder.

genvid-sync generate [-h] [--manifest MANIFEST]
                     [--compare {strict,safe,fast,never}] [-p]
                     [--max-workers MAX_WORKERS]
                     source

Positional Arguments

source

The source folder of the manifest.

Named Arguments

--manifest

The name of the manifest.

--compare

Possible choices: strict, safe, fast, never

The mode of comparison to use.

-p, --progress

Display progress.

--max-workers

Set the maximum workers. The default is to use the number of cpu by 5. A value below 2 deactivated the multithreading.

validate

Validate a manifest against a folder.

genvid-sync validate [-h] [--manifest MANIFEST]
                     [--compare {strict,safe,fast,never}] [-p]
                     [--max-workers MAX_WORKERS]
                     source

Positional Arguments

source

The source folder of the manifest.

Named Arguments

--manifest

The name of the manifest.

--compare

Possible choices: strict, safe, fast, never

The mode of comparison to use.

-p, --progress

Display progress.

--max-workers

Set the maximum workers. The default is to use the number of cpu by 5. A value below 2 deactivated the multithreading.

patch

Patch a folder using a manifest.

genvid-sync patch [-h] [--manifest MANIFEST] [--cache CACHE]
                  [--max-workers MAX_WORKERS] [-n] [--config CONFIG] [-p]
                  [--sync-period SYNC_PERIOD]
                  source destination

Positional Arguments

source

The source folder of the manifest.

destination

The destination folder.

Named Arguments

--manifest

The name of the manifest.

--cache

A sync folder used as a local cache. Must be the same type as the destination.

--max-workers

Set the maximum workers. The default is to use the number of cpu by 5. A value below 2 deactivated the multithreading.

-n, --dryrun

Show the operations without performing them.

--config

A file containing a list of parameters for TransferConfig. Could be JSON or HCL format.

-p, --progress

Display progress.

--sync-period

Period in seconds after which the current manifest is saved. Default to 60s.