rackmount Posted January 18, 2005 Posted January 18, 2005 Hello there everybody rack here, please do not take below as defacto just my way of doing things. I have both information for people and a question for the pros. Having installed a few contributions now I wondered if there is a utility that can do the following (after this text). Firstly though I would like to explain my approach to mods and contributions. Step one I would back up the site via ssh and tar it up into to backup versions 1 without permissions inclusions and one with the one with permissions (using the ?p) would remain on the server just in case it needs to be copied over the top of the modded site (the cock up factor with contribs is high ... sloppy code copy etc), I would then back up the DB with phpmyadmin and save it server side and to local drive. Now I would download the tar file to local hard drive and extract it to a folder of choice. From this directory I could then mod the php etc needed for the new contribution. Some would say why use ssh? well lets put it this way it takes me 5 seconds via ssh to copy the entire OS file directory and about 1 hours via standard ftp. My adsl connection is a bit gittery and drops some times in the middle of ftp sessions so this is most unreliable for OS mods. Anyway I have a question for all programming pro's I would like to do the following Having modified my php files for a mod I would like to extract these files (from my local OS copies) that have been modified but retain the file structure. This way I could simply ftp these files over the top of the old / others on the server without waiting or confusion. Eg if I modded the file in catalog/includes/languages/english/english.php catalog/index.php when I did a search for modified files it would create the folders necessary to reflect the above file locations. This may be a very simple question that can be answered easily if so then please do let me know. Regards Rack
avoisin Posted January 18, 2005 Posted January 18, 2005 Eg if I modded the file in catalog/includes/languages/english/english.php catalog/index.php when I did a search for modified files it would create the folders necessary to reflect the above file locations. This may be a very simple question that can be answered easily if so then please do let me know. Regards Rack <{POST_SNAPBACK}> I've got a similar discussion asked recently in another thread I started, you can find that here. I've been thinking on creating such a utility, but basically what you need to start with is a good diff utility. There are certainly good free variants, personally I use "BeyondCompare", (not free) and that does what I need. It can handle multiple directories, etc. I don't know if there is a similar utility to compare SQL structures, but I wouldn't be surprised. At the very least you could probably do a schema dump of the two, and use BeyondCompare that way. I feel packaging a contrib to make it easy to install is essential to it getting used ... so the cleaner, the better.
jocke4u Posted January 19, 2005 Posted January 19, 2005 Wouldn't it be fine with a SCM tool (Source Code Management) such as CVS. Start with a clean osCommerce 2.2 MS2, add it to CVS and set a tag (e.g. OSC_2_2MS2) then start to develop and commit your changes into CVS. Then you can compare with the current code with the wanted tag and you get the differences. Then another great tool for diff is Beyond Compare http://www.scootersoftware.com/ BR Joacim
rackmount Posted January 19, 2005 Author Posted January 19, 2005 Many thanks to both of you, I wonder though if the program you both mention can created directory structures having extracted them from the original positions. This would be great for clean ftp'ing. Many thanks anyway. Rack
rackmount Posted January 19, 2005 Author Posted January 19, 2005 By the way running a little off the topic does anyone know of a way of easily backing up the sql DB automatically other than cron?. Or any other suggestions would be great. Regards Rack
jocke4u Posted January 19, 2005 Posted January 19, 2005 Tere is a good suite below: - CVS as SCM http://www.cvshome.org - Eclipse as IDE Platform http://www.eclipse.org - PHPEclipse as PHP Editor inside Eclipse http://www.phpeclipse.de I am using Eclipse a lot since I live very much in the Java world. Of course I am using it in my smaller PHP world :-) BR Jocke BR Joacim
Recommended Posts
Archived
This topic is now archived and is closed to further replies.