This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Parameters to rsync

The user can remove default parameters if required. Parameters to rsync are saved by task including a local ssh parameter on the task. The local ssh parameter overrides a global ssh parameter if set.

Ssh parameters by task

The by task ssh parameters overrides global ssh parameters set in the user config.

  • ssh port, set if ssh uses other port than standard port 22
  • the ssh-keypath and identity file, normally this is .ssh/id_rsa, set only if other keypath and identity file to be used by ssh

Adding parameters to rsync

To add a parameter to rsync add the parameter in the field. RsyncUI enables seven user added parameters. Use any of the field to add parameter. The user is responsible for adding correct parameter. If there is added parameters which rsync dont understand, rsync will throw an error message.

Parameters are normally constructed as:

  • parameter=value
    • --exclude-from=/Volumes/home/user/exclude-list.txt
  • parameter only
    • --stats
    • --dry-run

For a full list of parameters to rsync please see the rsync docs.

Backup switch

You can instruct rsync to save changed and deleted files in a separate backup catalog ahead of the change. This feature is utilized by setting the following parameters:

  • --backup parameter instructs rsync to save changed files
  • --backup-dir parameter where to save changed or deleted files before rsync synchronize source and destination
    • RsyncUI does suggest a value for the --backup-dir but you might set it to whatever you want

Default catalog for backup of <catalog to synchronize> relativ to the synchronized catalog is: ../backup_<catalog to synchronize>

The Verify flag (icon)

The resulting commandline string is dynamically updated when changing parameters. By the Verify flag new parameters might be tested before saving. The verify executes a --dry-run task for verification of parameters. The Verify is context sensitive. If like the verify swicth is selected the verify executes a verify. And likewise for synchronize and restore switch.

Regarding the Verify flag and the verify switch is on. If there are many files a verify will take some time due to rsync computes the checksum and compares each files by checksum.

1 - Default parameters to rsync

Some of the default parameters can be switched on or off on a task.

The following parameters might be switched on/off:

  • --compress compress files before transmitting, networked tasks only
  • --delete delete all files at destination which are not in the source

The following parameters are applied to all tasks and cannot be switched off:

  • --archive ensures that all files are transferred with all attributes preserved
  • --verbose make rsync very outspoken, required for counting files in RsyncUI

Enable rsync daemon - enabling rsync daemon puts a double colon :: in address parameter to rsync. It forces rsync to use the rsync daemon remote.