Closed (fixed)
Project:
Database Scripts
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
3 Mar 2009 at 11:05 UTC
Updated:
1 Jan 2010 at 05:00 UTC
I'm having trouble with using svn to check in/out my drupals with dbscript dumps in them.
I have two machines, pinky is the dev machine, perky is the production machine. Drupal was installed and setup on pinky and duplicated on perky via svn.
I have dumped a database on pinky and added the files to svn. I've checked them out on perky and run a production dump, last merge dump but all the commands now try to delete all my .svn files and I can't get the databases to merge.
I'm sure I'm doing something wrong but I can't see what it is?
How should I have my environment set up to do this?
Comments
Comment #1
mnlund commentedEvening.
I also have this issue. When I performe the dumps the
exec("rm -r $dump_location/data/*.sql");on line 404 in dbscripts.module tries to delete the .svn files in the data and tables directories. I did a small modifocation and specified that only .sql files should be deleted. Is this a good practice? My modification are:On line 404 in dbscripts.module i changed
to
And now it kind of works.
Comment #2
mrfelton commentedI have this trouble too.. is the solution at #1 still working for you?
EDIT: Well, I made the change sugested above, and it works for dumping... But I run in to the same trouble when doing a restore.
Comment #3
ceardach commentedSorry about this bug. This should be fixed in the git repository -- I haven't had time to commit to cvs in awhile.
I'll leave this open until I commit to cvs.
Comment #4
mrfelton commentedThis is not fixed correctly in git. When trying to svn commit after doing a dump on production, I get the following error:
it seems that it just completely removes this last-dump direcrory - including all the .svn subdirs, making it impossible to commit again.
Comment #5
ceardach commentedYou should svn ignore everything that is inside both the tmp and workspace directories.
Comment #6
mrfelton commented@ceardach: ok, good to hear, as that's exactly what I ended up doing! Perhaps add that to the docs?
Comment #7
ceardach commentedYeah, I should add SVN and Git tips to the README
Comment #8
ceardach commentedComment #9
ceardach commentedComment #10
boztek commentedAnyone know a quick way to exclude tmp and workspace directories from svn?
Comment #11
toby.batch commentedAssuming a linux command lune, then in the databses folder execute:
(don't forget the trailing full stop)
And add:
On two separate lines, That should do it
Comment #12
hefox commentedhttp://drupalcode.org/viewvc/drupal/contributions/modules/dbscripts/READ...
Updated documentation.
Please reopen and provide a patch if I misspelled anything cause I probably did.