|
ssh_args: msg#00028sysutils.backup.rsnapshot.general
Hey all, I'm a bit of a rsnapshot newbie, but I don't this this is a faq. Either that or I really need to brush up on my google-fu. In any case, here's the deal. I have a server "A" that I need to back up. I have another server "B" that is intended to pull the data down. Both are Debian linux boxes running rsnapshot 1.2.1 Server "A" has a user named "net-backup" with sudo access to rsync. I have ssh set up on port 2222. root on server "B" has an ssh key that the net-backup@A trusts. That part works fine - I can connect without a password. Here's the issue. In my rsnapshot.conf file, I specify ssh_args with -p 2222 so that it will use the right port. The problem is that it seems to be building the rsync connection incorrectly. If I run rsnapshot in level 4 output, I see this: B:~/backup/snap# rsnapshot -c /root/backup/snap.conf daily Setting locale to POSIX "C" echo 24851 > /var/run/rsnapshot.pid mkdir -m 0755 -p /root/backup/snap/daily.0/ /usr/bin/rsync -alptgoHuv --delete --numeric-ids --relative \ --delete-excluded --rsync-path='sudo /usr/bin/rsync' --rsh=/usr/bin/ssh \ -p 2222 net-backup@A:/etc/ \ /root/backup/snap/daily.0/etc/ building file list ... rsync: link_stat "/usr/bin/rsync'" failed: No such file or directory (2) rsync: link_stat "/root/backup/snap/net-backup@A:/etc/." failed: No such file or directory (2) done created directory /root/backup/snap/daily.0/etc The problem seems to be that in the rsync line, because the arguments to ssh are separate, rsync is getting confused. If I run this rsync line manually, it syncs just fine (note the quotes around the rsh paramter): /usr/bin/rsync -alptgoHuv --delete --numeric-ids --relative --delete-excluded --rsync-path='sudo /usr/bin/rsync' --rsh="/usr/bin/ssh -p 2222" net-backup@A:/etc/ /root/backup/snap/daily.0/etc/ My snap.conf file is below. Can anybody offer some ideas as to how to fix this? Thanks in advance... config_version 1.2 snapshot_root /root/backup/snap/ cmd_cp /bin/cp cmd_rm /bin/rm cmd_rsync /usr/bin/rsync cmd_ssh /usr/bin/ssh cmd_logger /usr/bin/logger cmd_du /usr/bin/du interval daily 180 verbose 4 loglevel 3 logfile /var/log/rsnapshot.log rsync_short_args -alptgoHu rsync_long_args --delete --numeric-ids --relative --delete-excluded --rsync-path='sudo /usr/bin/rsync' ssh_args -p 2222 du_args -csh lockfile /var/run/rsnapshot.pid backup net-backup@A:/etc/ etc/ -- Cole Tuininga <colet@xxxxxxxxxxxxxxx> Code Energy (http://www.code-energy.com/) ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: rsnapshot not finding Perl libs on SLES9: 00028, David Cantrell |
|---|---|
| Next by Date: | Re: ssh_args: 00028, David Keegel |
| Previous by Thread: | rsnapshot not finding Perl libs on SLES9i: 00028, Alex Günsche |
| Next by Thread: | Re: ssh_args: 00028, David Keegel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |