Skip to content

joanayma/ackstorm-sync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ACKSTORM-SYNC MASTER:

  # Create links
  ln -s /usr/local/ackstorm/sync/extras/logrotate.d/ackstorm-sync /etc/logrotate.d/
  ln -s /usr/local/ackstorm/sync/extras/monit/ackstorm-sync.conf /etc/monit/conf.d/
  ln -s /usr/local/ackstorm/sync/extras/cron.d/ackstorm-sync* /etc/cron.d/
  ln -s /usr/local/ackstorm/sync/extras/rsyncd /etc/rsyncd
  ln -s /usr/local/ackstorm/sync/etc /etc/ackstorm-sync
  ln -s /usr/local/ackstorm/sync/var/log /var/log/ackstorm-sync
  
  # Enable rsync server
  apt-get install rsync
  # install dependencies
  apt install python-pyinotify
  
  # Modify /etc/default/rsync
  # RSYNC_ENABLE=true 
  # RSYNC_CONFIG_FILE=/etc/rsyncd/rsyncd.conf

  # Configure
  /usr/local/ackstorm/sync/extras/etc/role_conf.py
  /usr/local/ackstorm/sync/extras/etc/master_conf.py

  # Configure rsync secrets file
  vi extras/rsyncd/rsyncd.secrets
  chmod 600 extras/rsyncd/rsyncd.secrets

  # Restart services
  service rsync restart
  service monit restart
  # Start sync master
  /usr/local/ackstorm/sync/bin/ackstorm-sync restart

  # or use a systemd service unit
  cp extras/systemd/ackstorm-sync.service /usr/lib/systemd/system/
  systemctl deamon-reload
  systemctl restart ackstorm-sync

ACKSTORM-SYNC SLAVE:

  ln -s /usr/local/ackstorm/sync/extras/logrotate.d/ackstorm-sync /etc/logrotate.d/
  ln -s /usr/local/ackstorm/sync/extras/monit/ackstorm-sync.conf /etc/monit/conf.d/
  ln -s /usr/local/ackstorm/sync/extras/cron.d/ackstorm-sync /etc/cron.d/
  ln -s /usr/local/ackstorm/sync/extras/etc /etc/ackstorm-sync
  ln -s /usr/local/ackstorm/sync/var/log /var/log/ackstorm-sync

  # Configure
  /usr/local/ackstorm/sync/extras/etc/slave_conf.py

  # Restart services
  service monit restart
  # Start sync slave
  /usr/local/ackstorm/sync/bin/ackstorm-sync restart

  # or use a systemd service unit
  cp extras/systemd/ackstorm-sync.service /usr/lib/systemd/system/
  systemctl deamon-reload
  systemctl restart ackstorm-sync

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%