2 package IkiWiki::Plugin::rsync;
9 hook(type => "getsetup", id => "rsync", call => \&getsetup);
10 hook(type => "change", id => "rsync", call => \&postrefresh);
11 hook(type => "delete", id => "rsync", call => \&postrefresh);
22 example => "rsync -qa --delete . user\@host:/path/to/docroot/",
23 description => "command to run to sync updated pages",
32 if (defined $config{rsync_command} && ! $ran) {
34 chdir($config{destdir}) || error("chdir: $!");
35 system $config{rsync_command};
37 warn(sprintf(gettext("failed to execute rsync_command: %s"), $!))."\n";
40 warn(sprintf(gettext("rsync_command exited %d"), $? >> 8))."\n";