aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-09-11 18:28:35 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-09-11 18:28:35 -0400
commit5b818c9f2ac9c9a2d953f29194913036ab26c225 (patch)
treeec19f7614605c3235e1b0b0017e54a79b147f761 /doc/plugins
parent3c80557054fbaca6d0614e4327d49e721b9d4fdc (diff)
downloadikiwiki-5b818c9f2ac9c9a2d953f29194913036ab26c225.tar
ikiwiki-5b818c9f2ac9c9a2d953f29194913036ab26c225.tar.gz
doc update, add --exclude ikiwiki.cgi to examples
Diffstat (limited to 'doc/plugins')
-rw-r--r--doc/plugins/contrib/rsync.mdwn21
-rw-r--r--doc/plugins/rsync.mdwn17
-rw-r--r--doc/plugins/rsync/discussion.mdwn (renamed from doc/plugins/contrib/rsync/discussion.mdwn)0
3 files changed, 17 insertions, 21 deletions
diff --git a/doc/plugins/contrib/rsync.mdwn b/doc/plugins/contrib/rsync.mdwn
deleted file mode 100644
index 71cd63947..000000000
--- a/doc/plugins/contrib/rsync.mdwn
+++ /dev/null
@@ -1,21 +0,0 @@
-[[!template id=plugin name=rsync core=0 author="[[schmonz]]"]]
-
-[[!template id=gitbranch branch=schmonz author="[[schmonz]]"]]
-
-This plugin allows ikiwiki to push generated pages to another host
-by running a command such as `rsync`.
-
-### Usage
-7. Enable automated SSH key exchange between ikiwiki and the remote
- host. [keychain](http://www.gentoo.org/proj/en/keychain/) makes
- it easy to use a passphrase-protected key for this purpose. It's
- also a good idea to specify the exact command line to be permitted
- in the remote host's `$HOME/.ssh/authorized_keys`.
-7. Set `rsync_command` in your setup file. If you're using a
- passphrase-protected key, then set `rsync_command` to a shell
- script which reads `keychain`'s current state before calling
- `rsync`.
-
-### Implementation details
-* The plugin relies on a new "postrefresh" hook called at the very end of
- `IkiWiki/Render.pm:refresh()`.
diff --git a/doc/plugins/rsync.mdwn b/doc/plugins/rsync.mdwn
new file mode 100644
index 000000000..0ab3872d9
--- /dev/null
+++ b/doc/plugins/rsync.mdwn
@@ -0,0 +1,17 @@
+[[!template id=plugin name=rsync author="[[schmonz]]"]]
+
+This plugin allows ikiwiki to push generated pages to another host
+by running a command such as `rsync`.
+
+The command to run is specified by setting `rsync_command` in your setup
+file. The command will be run in your destdir, so something like this
+is a typical command:
+
+ rsync -qa --delete . user\@host:/path/to/docroot/ --exclude ikiwiki.cgi
+
+If using rsync over ssh, you will need to enable noninteractive ssh login
+to the remote host. It's also a good idea to specify the exact command line
+to be permitted in the remote host's `$HOME/.ssh/authorized_keys`.
+
+Be sure to exclude the `ikiwiki.cgi` wrapper from being sent to the remote
+host.
diff --git a/doc/plugins/contrib/rsync/discussion.mdwn b/doc/plugins/rsync/discussion.mdwn
index 6bf7a3826..6bf7a3826 100644
--- a/doc/plugins/contrib/rsync/discussion.mdwn
+++ b/doc/plugins/rsync/discussion.mdwn