-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Those variables only apply to connections to an rsyncd service. Since you are using ssh for the networking rsync doesn't really have that information.
Also, since you are pulling backups rather than pushing them if you switched to rsyncd instead of ssh it the %a and %h it would log would be that of your backup server not the machine you are connecting to. On 11/22/11 18:40, Chris Adams wrote: > Hello all, > > > > This is my first post to this mailing list. I have been using rsync > for a bit and have it mostly working the way I want. > > > > I have a backup server that I run all scripts from. It rsyncs data > from four different Linux servers via cron. A sample of a script is > here: > > > > rsync -avz --log-format="%t %b %f %l %M" --delete --stats -e "ssh > -i /root/rsync/authors-rsync-key" bac...@mydomain.com:/disk2/www > /backup/seic37 2>&1 >> /var/log/rsync/rsync.log > > > > This works fine and I get the log file entry that shows this: > > > > 2011/11/22 13:20:51 2089 acad0304/alllibdirstaff.MYI 2048 > 2011/08/31-12:46:20 > > > > I would like to include the IP and/or hostname of the machine > being backed up, but when I use %a (remote IP) or %h (remote host) > in the ?log-format=, it just writes the literal %a or %h in those > fields. Could this be because I am running scripts from the machine > that is on the receiving end. > > > > Inspire me. Thanks. > > > > > > Christopher Adams > > Library Systems Coordinator > > Oregon State Library > > chris.a.ad...@state.or.us > > 503-378-5031 > > 503-932-1004 (IT support) > > > > > - -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. ke...@futurequest.net (work) Orlando, Florida k...@sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7MPW4ACgkQVKC1jlbQAQft7QCgtj/B9857sb5AaC9MwV6J/OwQ VzgAn3HOdV4zTiaaMGkYGmkHhIMhOPuK =OEJM -----END PGP SIGNATURE----- -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html