Skip to content

Утилита для односторонней синхронизации локальной папки с папкой на удаленной машине

License

Notifications You must be signed in to change notification settings

abataloff/docker-lsyncd

Repository files navigation

docker-lsyncd

A utility for one-way synchronisation of a local folder with a folder on a remote machine. When you delete a file or folder in a local folder, the deletion does not occur in the deleted folder (as an option). Perfect for mirroring data.

Launching

  1. Cloning the repository
git clone https://github.com/abataloff/docker-lsyncd.git
  1. Configuration
    1. Rename the lsyncd/lsyncd.config.example file to lsyncd.config
    2. Set the hostname of the remote host in the parameter sync.host in lsyncd.config
    3. Set the path to directory on remote host in the parameter sync.targetdir in lsyncd.config
    4. Set path to local directory as volume (./data:/data) in docker-compose file
    5. Create the folder keys with ssh private key for autorization on remote host (he should be without a password and with permission 600)
    6. Create the known_hosts file in keys
  2. Run container
docker-compose up -d

About

Утилита для односторонней синхронизации локальной папки с папкой на удаленной машине

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published