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)
-- 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