OK so you have a test site somewhere (which has its own google map api key) and a production site (which has a different google map api key). You maybe wish to synchronize the data in the sites as well as the code.
This works well for me. In your sites directory make a folder for production:
mysite.com
and another for dev
mysitetest.com
or
localhost
Put a copy of settings.php into each folder. Edit each settings.php file and add code like this to reference that site's google maps api key as in
in folder mytest.com:
$conf = array(
'site_name' => 'MySite',
'site_slogan' => 'where my and site converge',
'theme_default' => 'mysite_theme',
'googlemap_api_key' => 'ZYXJkHDijkasdiuhe3829..........',
);in folder mysitetest.com:
$conf = array(
'site_name' => 'MySite - Test',
'site_slogan' => 'Test Site for mysite.com',
'theme_default' => 'mysite_theme',
'googlemap_api_key' => 'ABCkSKllk39jlJDLSLKS..........',
);Now you can synchronize the same code base to all your sites and the appropriate google map api key will be used. You could update all production data into your dev site's database (using phpMyAdmin, for example) and you will not overwrite/lose your dev site's google map api key. Plus this is a more permanent way of storing your keys