|
Cookbook /
WikiCVSStorageGoalWhen 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. 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 Just a quick note that Subversion works well for this also. --ShaneSimmons? ContributorsCopyright2004 Benjamin C. Wilson. GNU General Public License
User notes?: If you use, used or reviewed this recipe, you can add your name. The following format is recognized:
* (+) Optional positive comment. Name, date * (-) Optional negative comment. Name, date These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |