All pastes #956111 Raw Edit

Something

public text v1 · immutable
#956111 ·published 2008-03-25 01:02 UTC
rendered paste body
rsyncd.conf
===========

[base]
  path = /
  comment = 'Asterisk system rsync'
  use chroot = false
  uid = root
  gid = root
  read only = false

[asterisk]
  path = /etc/asterisk
  comment = 'Asterisk config rsync'
  use chroot = false
  uid = asterisk
  gid = asterisk
  read only = false

deploy.sh
=========

#!/bin/bash
rsync --progress --rsh=/usr/bin/ssh --recursive --times --exclude ".*" --exclude "./ubuntu/etc/asterisk/*" ./ubuntu/ rsync://login@asterisk/base
rsync --progress --rsh=/usr/bin/ssh --recursive --times --exclude ".*" ./ubuntu/etc/asterisk/ rsync://login@asterisk/asterisk