Installation From Source
- Install the required dependencies:
- RHEL and RHEL-based
systems:
# yum install automake byacc flex git gcc gnutls-devel librsync librsync-devel libsqlite3x-devel libpq-devel make mysql-devel
-
Oracle Linux:
# dnf install automake byacc flex git gcc gnutls-devel librsync librsync-devel libsqlite3x-devel libpq-devel make mysql-devel
- RHEL and RHEL-based
systems:
- Clone the Csync2
repository:
# git clone https://github.com/LINBIT/csync2.git
- Compile and install
Csync2:
# cd csync2 # ./autogen.sh # ./configure # make # make install
- Create the systemd service unit configuration
file:
# vi /etc/systemd/system/csync2.service
- Paste the following content into the
file:
[Unit] Description=csync2 file synchronization tool using librsync and current state databases After=network.target [Service] Type=idle ExecStart=/usr/local/sbin/csync2 -ii -l Restart=on-failure [Install] WantedBy=pcsd.service
- Start the
service:
# systemctl start csync2.service
- Configure the service to be started automatically at
boot:
# systemctl enable csync2.service