2 package IkiWiki::Plugin::rsync;
9 hook(type => "getsetup", id => "rsync", call => \&getsetup);
10 hook(type => "postrefresh", id => "rsync", call => \&postrefresh);
21 example => "rsync -qa --delete /path/to/destdir/ user\@host:/path/to/docroot/",
22 description => "unattended command to upload regenerated pages",
29 if (defined $config{rsync_command}) {
30 system $config{rsync_command};
32 warn("failed to execute rsync_command: $!");
34 warn(sprintf("rsync_command exited %d", $? >> 8));