This commit is contained in:
Strix 2024-05-23 20:21:18 +02:00
commit 3bc0ded5a0
7 changed files with 102 additions and 0 deletions

8
nodes/etc/rsyncd.conf Normal file
View file

@ -0,0 +1,8 @@
[sfbs]
path = /
comment = "Full file-system share for sbfs"
read only = true
exclude = *.tar.old
refuse options = delete
auth users = @guset:deny, sfbs:ro
secrets file = /var/lib/sfbs/rsync-auth

6
nodes/install.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
cp ./etc/rsyncd.conf /etc/rsyncd.conf
[ -d "/var/lib/sfbs" ] || mkdir -p /var/lib/sfbs
[ -f "/var/lib/sfbs/rsync-password" ] || openssl rand -hex 16 > /var/lib/sfbs/rsync-password
[ -f "/var/lib/sfbs/rsync-auth" ] || (echo "sfbs:$(cat /var/lib/sfbs/rsync-password)" > /var/lib/sfbs/rsync-auth)