New feature request.
Mick Hellstrom
rsync at boutade.net
Fri Jun 4 00:53:44 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
People,
I have just been in the throws of setting up a ClearCase MultiSite
environment, (if you don't know what it is it's irrelevant anyway), between
two countries, and a thought struck me.
I have the situation where I want to anonymously rsync data from one place to
another, (the reason why I use rsync), but I also want to be able to run a
script on the remote end to generate some files that I want to rsync.
Something along the lines of the following would be REALLY handy in rsync:
[replica]
path = /fu/bar/replica
comment = Packet replica base.
preexec = /usr/local/sbin/generatepacket
postexec = /usr/local/sbin/emailstats
Has anyone thought of this yet?
A little in depth for the curious types:
1. I have two ClearCase MultiSite replicas.
2. They don't/can't login automatically to each other to generate the sync
packets to be updated.
3. They both traverse a firewall, and the only open port is rsync.
So, I want to be able to have a cronjob on 'hostA' like:
* * 0 * * /usr/local/bin/rsync -Hvax hostB::replica/hostB /fu/bar/replica/
This will generate the sync packet and rsync over.
- --
/#################################################\
# Mick Hellstrom # Web: http://boutade.net/ #
# # Mobile: +61418 280 458 #
# Senior SysAdmin # Office: +61 2 9690 5300 #
# Software Engineer # Fax: +61 2 9690 5247 #
\#################################################/
C: main(s){printf(s="main(s){printf(s=%c%s%c,34,s,34);}",34,s,34);}
Perl: $p='$p=%c%s%c;printf($p,39,$p,39);';printf($p,39,$p,39);
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAv8gbT5oJxO+zOgERArdQAKCd99s9TsopjVbdh+yuswh5Lnzg6wCeKulz
9QKXRk45htgpoXaqxy7DWDo=
=xrh7
-----END PGP SIGNATURE-----
More information about the rsync
mailing list