# Example daemon-mode configuration file for rsync # (used by safe-rsync-daemon script) # # Save this file as /srv/backup/rsyncd_conf/<<>>.conf # and edit to suit, i.e. replace all occurrences of <<>> # with client name passed to safe-rsync-daemon by .ssh/authorized_keys # # On the client, back up to the 'files' module. --link-dest will work even # though the module is unreadable, i.e. it can't be used as the rsync sender. # The 'list' module can be used to get a listing of the subdirectories in the # client directory, however access to anything deeper in the tree is prevented. [files] path = /srv/backup/clients/<<>> use chroot = yes numeric ids = yes read only = false write only = true lock file = /var/run/rsyncd_<<>>.lock max connections = 1 uid = 0 gid = 0 read only = false # sanity checks ## pre-xfer exec = # rotate increments ## post-xfer exec = [list] path = /srv/backup/clients/<<>> use chroot = yes numeric ids = yes lock file = /var/run/rsyncd_test.lock max connections = 1 read only = true # allow access only to the top level filter = + /* - /*/**