Archive for category Prestashop
Upgrading Prestashop with rsync and SVN
Posted by Andrea De Pirro in Prestashop on August 21, 2009
Upgrading prestashop core is pretty straightforward, but when you have to deal with SVN metafiles some issues could arise. Normally you can follow instructions given by Prestashop authors, but we have to add some simple steps. First of all you have to install rsync (is installed by default in every unix distribution, including Mac OS X). Now download the latest version of Prestashop, unzip it, and change the folder name admin to the name you have given during Prestashop installation (tipically is something like admin542). Now all you have to do is synchronize the new version with the one installed in your local machine typing this command:
rsync -rlv --inplace path/to/new/prestashop path/to/local/prestashop
With this method you don’t have to worry about existing modules, tabs or translations, because everything is only updated, never deleted. You can launch the Prestashop installer going to http://local-installation-of-prestashop/install and follow the instruction to upgrade the core. Don’t forget to delete the install folder after the upgrade process. Now you’ll have some new files and a lot of modified files to be committed to the SVN repository. With this simple command you can add every file that is not present in the repository:
svn status |grep '\?' |awk '{print $2}'| xargs svn add

