To configure a new Weblication® export project, create a project using the "Create new export project" button.
The configuration interface of the sync project opens.
You will see the automatic configuration test at the top of the screen. This is carried out each time the project is called up and essentially checks the connection to the target server.
You will receive the following errors here during the initial setup:
h
The fields to be configured in the rsync configuration are described in more detail below.
ID of the export. Is assigned automatically. The first export set up always has the ID "default". The ID of the export also corresponds to the name of the directory set up for it under .../wSync/projects/.
Renaming an export project directory also changes the project ID. This is possible without further ado, but you must adapt scripts or entries in the Weblication® panel that refer to an export ID accordingly.
Name of the sync project as it is displayed in the overview.
Selects whether the project contains its own configuration data or combines several individual projects.
If'Profile for multiple export projects' is selected, a selection list of all available projects is displayed. With this option, any number of projects can be started via a profile. This is relevant, for example, if several different servers are to be operated in parallel.
Here you can select the way in which rsync connects to the target file system. The following options are available:
Local
Specifies the root directory under which the Weblication® installation and the directories to be synchronized can be reached. If this specification corresponds to the DocumentRoot, this field can be left blank.
Remote
URL of the target server, without protocol specification.
Root directory of the target server from which the data to be transferred is to be stored.
Absolute path to the storage location of the private key.
Attention:
This key must be readable for the webserver user and must be stored in accordance with the SSH specifications.
User name to be used for the connection.
If the PHP script limit is set to a low value, a value just below this should be entered here. This intercepts errors where the rsync is aborted at PHP level before all files have been transferred.
Automatic selection by rsync (default)
Selection of directories containing elements to be synchronized. Multiple selection possible.
Specification of the directory paths to be excluded, starting from the DocumentRoot. Separate multiple directories with the pipe character: |
This specification excludes the specified character string regardless of its position in the path. "news" therefore excludes /en/news/ as well as /news/ or /newsletter. If in doubt, enter the complete path to be excluded here.
Path to a txt file containing the list of files to be transferred.
If such a file is specified, the automatic detection mode of rsync is overridden!
Path to a PHP script that generates the file list.
Must contain a function named getFiles() and return the file list as an array.
Does not consider working copies during synchronization
Does not consider versions during synchronization
Does not include locked files during synchronization
Does not transfer the locally generated cache (and therefore does not empty the remote cache). If this setting is activated, it must be emptied via a script - see below).
Does not take index files into account during synchronization. The index on the recipient side must also be deleted using a script.
Does not update the search index on the recipient side
When using the Weblication Rating Weblic, this option must be set to "yes", otherwise rating data made on the live server may be deleted.
Does not consider index files during synchronization. The index on the recipient side must also be deleted by a script.
Does not include any log files created by Weblication during synchronization
(search, monitoring, watchdog)
Log files created by the synchronization are kept for the specified period and then deleted.
Defines the mode for the files specified below:
Specifies the file extensions relevant for the mode specified in the previous field. Multiple entries are separated with |. The entry is made without the leading dot.
This option activates full synchronization, in which files are also deleted on the recipient side if they no longer exist on the source server.
Executes any script after the export call has been completed. If the path is specified without HOST, the script is accepted on the target server.
If the host on which the script to be called up after the export is located differs from the URL of the target server, an alternative specification can be made here.
In this field, any shell/bash script can be specified that is executed before the rsync-cmd is started (e.g. /home/user/beforeExport.sh).
The Id of the executed wSync project is always automatically given to this script as the first parameter.
Any shell/bash script can be specified in this field that is executed after the rsync-cmd is triggered (e.g. /home/user/afterExport.sh).
This script is always automatically given the ID of the executed wSync project as the first parameter.
This can be used, for example, to trigger a script on the target server from the bash. This may be necessary if the web server user is not authorized to access external hosts via curl past a firewall.
The remote pack consists of a script that performs predefined actions after the export has been completed and can be installed directly in most cases using the adjacent button.
This password must be stored in parallel in the following file as an md5-encoded string:
/weblication/grid5/appsExtern/wSync/remotePack/index.php
Automatically clears the Weblication project cache for the specified project and the corresponding directory index
Automatically clears the Weblication project cache for the specified project.
Specifies the project for which the above elements are to be deleted.
In most cases, a content project is specified here.
Only relevant if the weblication installation directory was explicitly included in the directories to be transferred.
Excludes all users and group data from the export
Excludes all Weblication users from the export
'Exclude group files':
Excludes all Weblication groups from the export
The export will generally use the file and directory permissions set by the SSH transfer to create new files and directories on the target server.
It is possible to set the permissions explicitly.