The WebSync Batch-Interface

The WebSync-GUI is mainly useful for defining sets of configuration parameters and to get started quickly. Since synchronization is usually done on a regular basis, it is sensible to delegate the task to a scheduler (e.g. cron on UN*X-systems).

With the batch-interface, you can control most of behaviour of WebSync using command-line switches. An overview (and quick help) is available with the -h-switch:

> java -jar websync.jar -h
usage:

  gui-mode:   java -jar websync.jar [-v] [cfg-file]
  batch-mode: java -jar websync.jar -b -p password [-vqd] cfg-file
  
    -q: quiet
    -v: verbose
    -d: dry run

Switches and arguments in square-brackets ([...] are optional. Since WebSync uses the standard Unix-getopt tool to parse command-line arguments, switches can be collected (e.g. java -jar websync.jar -vbp password cfg-file).

The -v-switch sets logging level to verbose, -q in contrast will write no log-messages at all to standard output (log messages will still go to an optionally definied log-file).

Batch-mode is selected with the -b-switch, in which case you also have to supply a password and a configuration-file.


My Homepage
Bernhard Bablok (mail @ bablokb.de)