You are here
Quick recipe to easily migrate a drupal installation to CVS
I recently had to update a number of drupal installations, some of them quite old. Here is a bash "few-liner" to migrate an install to CVS, making it much easier to update in the future.
# replace DRUPAL-6-12 with the appropriate version tag
cvs -z6 -d :pserver:anonymous:firstname.lastname@example.org:/cvs/drupal checkout \
-r DRUPAL-6-12 new_drupal
rm -rf new_drupal/sites
for i in `ls drupal`; do mv $i old_drupal; mv drupal/$i .; done
# if you have drush
# make sure everything's working, then rm -rf old_drupal
Standard disclaimers apply, hope this helps some people!