Rsync config

Rsync config

server

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

cat > /etc/rsyncd.conf <<EOF
use chroot = false
strict modes = false

[rsync_test]
path = /path/to/share
comment = Rsync test
read only = true
auth users = admin
secrets file = /etc/rsync.password
EOF

echo 'admin:password_2314' > /etc/rsync.password
chmod 600 /etc/rsync.password
rsync --config=/etc/rsyncd.conf --daemon

client

1
2
3
echo 'password_2314' > /etc/rsync_client.password
chmod 600 /etc/rsync_client.password
rsync -avzP --password-file=/etc/rsync_client.password admin@192.168.1.2::rsync_test/ .