|
Re: Sudo + ssh and rsnapshot: msg#00021sysutils.backup.rsnapshot.general
On Sun, Aug 06, 2006 at 07:56:50PM +0200, S?bastien CRAMATTE wrote: > Hello list, > > I'm a newbie in rsnapshot but seems to be amazing :) > > I've got various linux server configured to use sudo > the root access is disabled (like in Ubuntu) > > How can I setup rsnapshots to get data from these servers > > I think that I should do : > - do ssh public keys exchange between servers > > - configure sudo to allow rsync call without password > > LAN = NOPASSWD: /usr/bin/rsync ... > > > I believe that I need to call a line like this ... > > //rsync -avz -e "ssh -i /home/backup/.ssh/id_dsa" --rsync-path='sudo rsync' > backup at server <http://lists.samba.org/mailman/listinfo/rsync>:/ > /backup/server/// > > But with rsnapshots how can I do that ? You probably don't need the "-i /home/backup/.ssh/id_dsa" if you are running rsnapshot as user backup. But in ay case if you want it, just put this in your rsnapshot.conf: ssh_args -i /home/backup/.ssh/id_dsa The rsync path is a little tricky because it has a space in it. This was discussed in rsnapshot-discuss on July 12 :- http://sourceforge.net/mailarchive/forum.php?thread_id=22990829&forum_id=41320 I would suggest the easiest thing is for you to create a shell script that just consists of sudo /usr/bin/rsync "$@" and use that shell script as your --rsync-path. So you could add something like +rsync_long_args=--rsync-path=/usr/local/bin/sudo_rsync to each backup line (as long as you have a script /usr/local/bin/sudo_rsync on the machine to be backed up). ___________________________________________________________________________ David Keegel <djk@xxxxxxxxxxxxxxxxxx> http://www.cyber.com.au/users/djk/ Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | 优惠代开发票!: 00021, 腾达实业有限公司 |
|---|---|
| Next by Date: | Re: Sudo + ssh and rsnapshot: 00021, David Cantrell |
| Previous by Thread: | Sudo + ssh and rsnapshoti: 00021, Sébastien CRAMATTE |
| Next by Thread: | Re: Sudo + ssh and rsnapshot: 00021, David Cantrell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | Mail Home | sitemap | FAQ | advertise |