In need of CVS/SVN checkout script for Production servers
| From: | Daevid Vincent | Date: | Thu, 29 Apr 2010 19:32:56 +0000 |
| Subject: | In need of CVS/SVN checkout script for Production servers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-304758@lists.php.net to get a copy of this message | ||
Semi-off-topic, but I'm pretty sure you all are faced with this same
challenge, I figured it's worth a shot and maybe some flaming.
I'm looking for a script (bash or php) that I would run on my production
web server that would do this or close to it:
1. do a CVS/SVN checkout to a new timestamped directory
2. change the symlink from the old directory
3. change permissions to www-data:www-data on new directory
4. and possibly tarball up the old directory.
I'm assuming this is a fairly common task, and I actually wrote one of
these at my previous job, but I can't find the script anymore. I remember
it's not quite as trivial as it sounds and took a few hours to perfect, so
I thought I'd try to save myself some time. :)
I have some other useful SVN scripts here if anyone is interested:
http://daevid.com/content/examples/snippets.php