From: David W. <da...@wr...> - 2010-05-25 21:56:52
|
Thanks for taking the time to reply Michael. I've tried what you suggested and rsync seems to work on the client. See below: -bash-4.0$ ssh -l david aragorn "/usr/bin/rsync --version" rsync version 3.0.3 protocol version 30 Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append, ACLs, xattrs, iconv, symtimes rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. I've tried to rsync a file between two directories on the client: -bash-4.0$ ssh -l david aragorn "ls /home/david/etc" ls: cannot access /home/david/etc: No such file or directory -bash-4.0$ ssh -l david aragorn "rsync --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times /etc/resolv.conf /home/david/etc/" -bash-4.0$ ssh -l david aragorn "ls /home/david/etc" resolv.conf -bash-4.0$ ssh -l david aragorn "cat /home/david/etc/resolv.conf" # Generated by NetworkManager domain wraige.com search wraige.com nameserver 192.168.1.254 So that certainly works. I'm no expert with rsync, and I don't know how to get it to transfer between the server and client, but from what I can see ssh is working and rsync is working. Any other thoughts? Thanks, David Michael Stowe wrote: >> Hi there, >> >> I'm having major trouble getting BackupPC to run Rsync backups. I'd be >> very grateful if anyone can offer some help. >> >> I have just installed BackupPC on an Opensolaris 2009.06 (build 134) >> system. That in its own right was a major task, and I'd be happy to >> share my experiences in getting it installed and (nearly!) functional >> with anyone else - in due course I'll try to get round to writing a >> how-to for the wiki. >> >> When I first installed it there was no joy (for the same reasons as >> below), but then it started to work. I made no configuration changes, it >> just started working. Then it just stopped again. >> >> The problem is that I'm receiving the "Unable to read 4 bytes" error >> every time I start a backup. The log reads as follows: >> >> full backup started for directory /home >> Running: /usr/bin/ssh -q -x -l david aragorn /usr/bin/rsync --server >> --sender --numeric-ids --perms --owner --group -D --links --hard-links >> --times --block-size=2048 --recursive --ignore-times . /home/ >> Xfer PIDs are now 660 >> Read EOF: >> Tried again: got 0 bytes >> Done: 0 files, 0 bytes >> Got fatal error during xfer (Unable to read 4 bytes) >> Backup aborted (Unable to read 4 bytes) >> Not saving this as a partial backup since it has fewer files than the >> prior one (got 0 and 0 files versus 0) >> >> I know that the ssh keys are correctly set up. The following run on the >> BackupPC server as user "backuppc" shows that: >> >> -bash-4.0$ whoami && hostname >> backuppc >> saruman >> -bash-4.0$ ssh -l david aragorn "whoami && hostname" >> david >> aragorn > > So... What about ssh -l david aragorn "/usr/bin/rsync --version" > > If that works, I'd next try rsync'ing some files from the command line. |