Configuring Sync endpoints
Sync reads configuration settings from aspera.conf, which can be edited by using asconfigurator commands or manually. The following sections provide instructions for setting the best security configuration, instructions for how to edit other configurations, a reference for many of the available configuration options, and a sample aspera.conf.
Aspera preferred configuration
Set the following configuration options for greatest security. Additional settings are described in the following table.
- Set the location for the sync log for each transfer user.
By default, Sync events are logged to the Aspera® log (see Logging). Set the log to a directory within the transfer user's home folder.
Log location, size, and log level can be configured for both ascp and async by setting default or user-specific configurations in aspera.conf. For instructions, see Server logging configuration for ascp and ascp4.
To set a logging directory for async that is separate from ascp, you can set
async_log_dir. For example,> asconfigurator -x "set_user_data;user_name,username;async_log_dir,log_dir"Note: Ifasync_log_diris not set, then the logging configuration for ascp is applied. The client can override the server logging settings with the-Roption. - Set the location for the Sync database for each transfer user.
Sync uses a database to track file system changes between runs of the same session (see The Sync database). The Aspera Sync database must not be located on CIFS, NFS, or other shared file systems that are mounted on Linux®, unless you are synchronizing through IBM Aspera Proxy. If server data is stored on a mount, specify a local location for the Sync database. Set the database location to a directory within the user's home folder by using the same approach as setting the local Aspera Sync log:
> asconfigurator -x "set_user_data;user_name,username;async_db_dir,db_dir"This setting overrides the remote database directory that is specified by the client with the
-Boption. - If the Sync source files are on an NFS or CIFS mount, create a mount signature file.
Sync can use a mount signature file to recognize that the source is on a mount. If you do not use the mount signature file and the NFS or CIFS mount is unreachable, Sync considers those files as deleted, and will delete them.
To create a mount signature file, create the file in the parent directory of the source directory on the mount. For example, if the Sync directory is Z:\Sync\data, create the mount signature file by running the following command:
>echo mount >> Z:\Sync\mount_signature.txtWhen you run a Sync session, use
--local-mount-signature=/mnt/sync/mount_signature.txtif the local source is on a mount and--remote-mount-signature=/mnt/sync/mount_signature.txtif the remote source is on a mount. For bidirectional Sync sessions between mounts, use both.
Configuring other settings
To configure Sync settings in aspera.conf by using asconfigurator commands, use the following general syntax for setting default values (first line) or user-specific values (second line):
> asconfigurator -x "set_node_data;option,value"
> asconfigurator -x "set_user_data;user_name,username;option,value"
To manually edit aspera.conf, open it in a text editor with administrative privileges from the following location:
C:\Program Files\Aspera\Point-to-Point\etc\aspera.conf
See an example aspera.conf following the settings reference table. For an example of the asperawatchd configuration, see Watch Service configuration.
After manually editing aspera.conf, validate that its XML syntax is correct by running the following command:
> asuserdata -v
This command does not check whether the settings are valid.Sync configuration options
|
|
Description and Value Options |
|---|---|
|
|
The number of seconds async waits for a connection to be established before it terminates.
Value is a positive integer. (Default: 20). If synchronization fails and returns connection timeout errors, which might be due to issues such as under-resourced computers, slow storage, or network problems, set the value higher, from 120 (2 minutes) to even 600 (10 minutes). |
|
|
Specify an alternative location for the async server's snap database files. If unspecified, log files are saved in the default location or the location that is specified by the client with the -B option. |
|
|
Value has the syntax sqlite:lock_style:storage_style. (Default: undefined).
|
|
|
Enable (set to true, default) or disable (set to false) Sync. When set to false, the client async session fails with the error "Operation 'sync' not enabled or not permitted by license". |
|
|
Specify an alternative location for the async server's log files. If unspecified, log files are saved in the default location or the location that is specified by the client with the -R option. For information on the default log file location, see Logging. |
|
|
Set the amount of detail in the async server activity log. Valid values are log (default), dbg1, or dbg2. |
|
|
The number of seconds async waits for a nonresponsive session to resume before it terminates. Value is a positive integer. (Default: 20) |
|
|
Specify the directory creation mode (permissions). If specified, create directories with these permissions irrespective of <directory_create_grant_mask> and permissions of the directory on the source computer. This option is applied only when the server is a Unix-based receiver.
Value is a positive integer (octal). (Default: undefined) |
|
|
Specify the mode for newly created directories if directory_create_mode is not specified. If specified, directory modes are set to their original modes plus the grant mask values. This option is applied only when the server is a Unix-based receiver and when directory_create_mode is not specified.
Value is a positive integer (octal). (Default: 755) |
|
|
Async uses a locking mechanism that enforces a single async session running at a time for a source and destination directory. For example, this command can have only one async session running at a time:
Async has two types of locks that can be configured: The default type is The Other parameters in the
|
|
|
In the server side, the aspera.conf option allow Value corresponds to the minimum size of files (in MB) to resume. Lowest value is 1. Option is disabled with 0. |
|
|
Set the age limit for temporary files that are preserved on cleanup for potential transfer resume (usually at start and stop in async). Temp files older than the specified days are removed regardless of whether the transfers might resume. |
Example of Sync configuration in aspera.conf
<file_system>
...
<directory_create_mode> </directory_create_mode>
<directory_create_grant_mask>755</directory_create_grant_mask>
<preserve_acls>none</preserve_acls>
<preserve_xattrs>none</preserve_xattrs>
...
</file_system>
...
<default>
...
<async_db_dir> </async_db_dir>
<async_db_spec> </async_db_spec>
<async_enabled>true</async_enabled>
<async_connection_timeout>20</async_connection_timeout>
<async_session_timeout>20</async_session_timeout>
<async_log_dir>AS_NULL</async_log_dir>
<async_log_level>log</async_log_level>
...
</default>