Talk:CVS for Administrators
Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: CVS for Administrators.
- 1 How to download a single folder from CVS?
- 2 CVS for Everyone Else
How to download a single folder from CVS?
I want to download only a few modules from CVS. is it possible? when i tried with Tortoise cvs on Windows, it seems to be downloading the entire "contrib" folder.
- It should be possible. Just use a module name like contrib/plugins/mod/whatever--Tim Hunt 05:43, 13 May 2008 (CDT)
CVS for Everyone Else
I am Trying to Update With CVS, But What Am I Missing?
Perhaps lacking in the two existing CVS pages (see, CVS for Administrators and CVS for Developers) is an approach for those who do not have experience with CVS. And typical of issues facing such persons is the failure to understand that in order to most effectively make use of CVS for managing one's installation is that one must first establish installation data on your site that CVS will rely on to update your site. As Geof Duncan put it, "You really can't take an existing moodle install and turn it in to a CVS install that you can update using "cvs update -dP". You HAVE to start with a "clean" CVS install, then update it with cvs from there."
What follows is the step by step instructions that Geof offered in the forum at http://moodle.org/mod/forum/discuss.php?d=117021&parent=513472.
Five Steps to CVS Joy
Backup your database
This step is NOT optional as I've found on several occasions. Upgrades usually go smoothly but when they go wrong - it's a real roller coaster ride.
Use for example:
mysqldump --user root --password=rootpassword moodle > ~/moodle_bu.sql
Backup your existing /moodle/ folder
Again, just in case. You'll appreciate this is something goes wrong. In Ubuntu (or any *nix), it's a matter of
mv moodle moodleold
Follow the instructions on "Installing and Managing Moodle via CVS"
I can see you've read the instructions, but, the commands go like this:
cvs -d:pserver:firstname.lastname@example.org:/cvsroot/moodle login cvs -z3 -d:pserver:email@example.com:/cvsroot/moodle co -P -r MOODLE_19_WEEKLY moodle
Pick the appropriate CVS server according to your profile. This step takes a while...
Make the new moodle install your own
Copy over your config.php file, non-standard themes, blocks, and modules into their respective places.
cp moodleold/config.php moodle/config.php
This step can be particularly troublesome. If you discover that you end up with a "white screen" after the move, then delete your non-standard themes, blocks, and modules. Check your site again (should be the standard theme and you're probably missing your non-standard blocks and modules, but, it should be working), then carefully add individual non-standard elements until you figure out which particular element (theme, block, or module) is giving you trouble.
You Are Done
These four steps should leave you with a "new" moodle install that you can manage with cvs. Now that you are a Moodle CVS Master, we look forward to your posting the scripting you will develop to automate the update and include testing and rollback as necessary ;=} Bon chance!