GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - drunomics/syncd: Watches for file changes and rsyncs them to a remote machine.

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
syncd
syncd
 
 
syncd.conf
syncd.conf
 
 
watch.sh
watch.sh
 
 

Repository files navigation

syncd

Syncd is a simple bash script that watches for file changes and rsyncs them to a remote machine. It uses inotify to watch for file system changes and syncs the whole directory to a remote machine using rsync. The script makes sure to aggregate change events during a running rsync, such that after the initial sync a subsequent sync can be triggered (and so on).

Requirements

Right now a linux based system with inotify-tools and rsync installed is required, .e.g for ubuntu/debian based systems run

apt-get install inotify-tools rsync

For Mac OS X support https://github.com/ggreer/fsevents-tools could be integrated instead of inotify.

Installation

  • Clone the script in a directory of your choice, e.g.
cd ~/opt
git clone [email protected]:drunomics/syncd.git
  • Best, put syncd in your $PATH, for example by running:
cd syncd
sudo ln -s $PWD/syncd /usr/local/bin/syncd

Usage

  • Copy the syncd.conf file to the directory you want to sync, or in some of its parent directories and adapt it your needs.
  • Run "syncd start" in any directory below of the directory holding your syncd.conf file to start the daemon script.
  • By default, the script will create a .syncd.pid file for tracking the daemon process ID and a .syncd.log file to which the rsync output will be written.
  • Arguments known are the ones known from initd scripts (start,stop,restart,status) as well as "run" for manually triggering a rsync and "log" for checking the rsync output.

Author

Wolfgang Ziegler, [email protected], drunomics GmbH

About

Watches for file changes and rsyncs them to a remote machine.

wolfgangziegler.net/auto-rsync-local-changes-to-remote-server

Resources

Readme
MIT license
Activity
Custom properties

Stars

180 stars

Watchers

10 watching

Forks

53 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.