|
|
@ -33,6 +33,17 @@ rsync ALL=(root) NOPASSWD: /usr/bin/rsync --server -vlogDtprRze.iLsf --bwlimit=2 |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
## on client: |
|
|
|
|
|
|
|
#mkdir -p /var/lib/rsync |
|
|
|
|
|
|
|
#groupadd -r rsync |
|
|
|
#useradd -r rsync -d /var/lib/rsync -g rsync |
|
|
|
|
|
|
|
#chown rsync:rsync /var/lib/rsync |
|
|
|
|
|
|
|
#su -c 'ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa -q' - rsync |
|
|
|
## then you should copy /var/lib/rsync/.ssh/id_rsa.pub in the destination LXC's |
|
|
|
## /var/lib/rsync/.ssh/authorized_keys, prefixed with: command="/usr/sbin/ssh-cmd-validate" |
|
|
|
|
|
|
|
|