|
WikiCVSStorageNote: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
GoalWhen I'm in graduate school, I plan to use PmWiki to help me keep organized and take notes. However, I need to keep those notes synchronized on several systems, and safeguarded from fatal server errors. What to do? SolutionMy solution is to use CVS. Basically, I entered the entire PmWiki directory (which is wiki/ for me) into CVS, which nicely includes wiki.d. Then, I used cron to make regular, automatic backups of the project. This solution assumes you have CVS installed and have basic understanding on how to use it. Script used: I provide a template of my cron script for the automatic updates. Attach:wikicvs.txt
DiscussionI use SSH to connect to the CVS repository, even when I'm on the same server. This is because I use CVS to keep synchronized my various computers and want uniformity. Regardless, to use CVS with cron, I need to be able to use SSH without using a password. Sharing the public key as it is described above allows for this. Then, I just create the project ala CVS. This can lead to a problem where the permissions of the files are screwed up, causing a painful experience when you try to use PmWiki after you've CVS'd. So, in the accompanying script, after the repository is updated the permissions are fixed. See AlsoHistory2004-07-09: Initial revision. Comments & BugsLeave this field for future bugs or comments for your script ContributorsCopyright2004 Benjamin C. Wilson. GNU General Public License pmwiki-2.2.0-beta68 -- Last modified by {{BenWilson}}
|