к каталогу

📦 osync/ deajan

A robust two way (bidirectional) file sync script based on rsync with fault tolerance, POSIX ACL support, time control and near realtime sync

Открыть на GitHubобновлён 5д назад
Звёзды
993
Форки
103
За неделю
За месяц
Рост %
Язык
Shell

Установка и запуск

Installation

osync has been designed to not delete any data, but rather make backups of conflictual files or soft deletes. Nevertheless, you should always have a neat backup of your data before trying a new sync tool.

Getting osync via GitHub (remove the -b "stable" if you want latest dev snapshot)

$ git clone -b "stable" https://github.com/deajan/osync
$ cd osync
$ bash install.sh

Installer script accepts some parameters for automation. Launch install.sh --help for options.

There is also an RPM file that should fit RHEL/CentOS/Fedora and basically any RPM based distro, see the GitHub release. Please note that RPM files will install osync to /usr/bin instead of /usr/local/bin in order to enforce good practices.

osync will install itself to /usr/local/bin and an example configuration file will be installed to /etc/osync.

osync needs to run with bash shell. Using any other shell will most probably result in errors. If bash is not your default shell, you may invoke it using

$ bash osync.sh [options]

On *BSD and BusyBox, be sure to have bash installed.

If you can't install osync, you may just copy osync.sh where you needed and run it from there.

Arch Linux packages are available at https://aur.archlinux.org/packages/osync/ (thanks to Shadowigor, https://github.com/shadowigor).

Usage

Osync can work in 3 modes:

  1. :rocket: Quick sync mode
  2. :gear: Configuration file mode
  3. :mag_right: Monitor mode

[!NOTE] Please use double quotes as path delimiters. Do not use escaped characters in path names.

Из README репозитория · полный README на GitHub

Теги

acl-replicationfile-replicationposix-aclreplicationrsync-wrappersync-filessynchronizationtime-control