Hello I run rsync on a server and I backup our office PCs to it using cwRsync on Windows PCs. The command I use to backup these PCs is: rsync -vbalz --stats --backup-dir=/yesterday_backups/ --exclude-from="exclude_list.txt" --files-from="include_list.txt" --rsh="ssh" . username@mydomain.com:/path/to/folder On the server, I have the rsync service started at boot and it accepts connects when they are made using the above command. I think this is daemon mode, is that right? I do not have precreated rsync backup folders which the computers backup to using commands like: |rsync -aPv rsync://pub@your-ip-or-hostname/pub/someDirectory when one has a corresponding entry in |*/etc/rsyncd.conf . I do not have an rsyncd.conf file at all. My question is: I would like to know more about my computers when they connect and backup, but the only log I get is a line in the system log file looking like: Apr 19 04:36:23 hostname [732]: running: /usr/bin/rsync --server -vblogDtpRz --backup-dir /yesterday_backups/folder/ . /pathtofolder/ (username: username(1033), IP/port: xx.xx.xx.xx yyyy 22) THis is the only log I get. Is there a way to configure it so that I gather more logging information (eg, which files are transferred, any errors etc) even though I do not use the *|rsync:// backup method? Kind regards Hamish || |
On Wed, 2006-04-19 at 08:51 +0100, Hamish Robertson wrote:> rsync -vbalz --stats --backup-dir=/yesterday_backups/ > --exclude-from="exclude_list.txt" --files-from="include_list.txt" > --rsh="ssh" . username@mydomain.com:/path/to/folder > [...] > On the server, I have the rsync service started at boot and it accepts > connects when they are made using the above command. I think this is > daemon mode, is that right? > [...] > Apr 19 04:36:23 hostname [732]: running: /usr/bin/rsync --server > -vblogDtpRz --backup-dir /yesterday_backups/folder/ . /pathtofolder/ > (username: username(1033), IP/port: xx.xx.xx.xx yyyy 22)Since you used the SSH syntax with a single colon, the computers are invoking rsync on the server over SSH. The rsync daemon sits idle. If you want to use the daemon, write a rsyncd.conf specifying one or more modules and have the clients use the double-colon or rsync:// syntax. Then, you'll get lots of information in the daemon's log file or in syslog if you specified syslog. Alternatively, log-file.diff adds an experimental option --log-file that lets non-daemon rsyncs log their actions. You could disable the daemon and use this option, but I would recommend using the daemon. -- Matt McCutchen hashproduct@verizon.net http://hashproduct.metaesthetics.net/