пятница, 29 июня 2012 г.

rsync and sudo over SSH


Set NOPASSWD in the /etc/sudoers file.

testuser ALL= NOPASSWD:/usr/bin/rsync

Then use the --rsync-path option to specify the sudo wrapper.

rsync -a -e "ssh" --rsync-path="sudo rsync" testuser@server.ru:/home/testuser/ /archive

Комментариев нет:

Отправить комментарий