Detailed SVN initial checkin
NOTE: we assume that drupal is installed in the drupal directory as it would be by default of you check it out from CVS
Make a backup... just in case :-)
sudo tar -czvf drupalsite_date.tgz drupal
Take ownership of files and directories
sudo find ./drupal -type d -exec chown new_owner {} \;
sudo find ./drupal -type f -exec chown new_owner {} \;
sudo find ./drupal/sites/default/files/civicrm -type d -exec chmod 775 {} \;
sudo find ./drupal/sites/default/files/civicrm -type f -exec chmod 775 {} \;
sudo find ./drupal/sites/default/files/civicrm -type d -exec chgrp www-data {} \;
sudo find ./drupal/sites/default/files/civicrm -type f -exec chgrp www-data {} \;
Make sure that the files in the files directory have correct access, especially if you are running civicrm.
Make a copy of the code (-p preserver file ownership)
cp -Rp drupal drupal_import
Remove files that you don;t want to check in such as configurations.and the file/civicrm
Import the files
svn import drupal_import file:///svn/<project name>/trunk -m"Initial import"
Rename the original directory, check out the files from SVN and remane trunk
mv drupal drupal_orig svn checkout file:///svn/<project name>/trunk
mv trunk drupal
Restore the files that you deleted from drupal_import from drupal_orig into drupal.
Check directories and fiels ownership and permissions, in all likelihood you'll need to reset the permissions.
Check directories and fiels ownership and permissions, in all likelihood you'll need to reset the permissions.
sudo find ./drupal/sites/default/files -type d -exec chmod 775 {} \;
sudo find ./drupal/sites/default/files -type f -exec chmod 775 {} \;
sudo find ./drupal/sites/default/files -type d -exec chgrp www-data {} \;
sudo find ./drupal/sites/default/files -type f -exec chgrp www-data {} \;
Remove drupal_orig and drupal_import
- Login to post comments